Skip to content

Conversation

Songmu
Copy link
Collaborator

@Songmu Songmu commented Jul 27, 2025

It is unclear under what conditions Compare(a, b) bool returns true, and it is common for Compare(a, b) int to take three values, like the spaceship operator (<=>`).

I renamed the Compare method and used the slices package to remove unnecessary functions and simplify the code.

Copy link
Contributor

Code Metrics Report

main (ece224a) #319 (a2a67d9) +/-
Coverage 33.3% 32.7% -0.7%
Code to Test Ratio 1:0.9 1:0.9 +0.0
Test Execution Time 10s 11s +1s
Details
  |                     | main (ece224a) | #319 (a2a67d9) |  +/-  |
  |---------------------|----------------|----------------|-------|
- | Coverage            |          33.3% |          32.7% | -0.7% |
  |   Files             |             23 |             23 |     0 |
  |   Lines             |           2777 |           2712 |   -65 |
- |   Covered           |            925 |            887 |   -38 |
+ | Code to Test Ratio  |          1:0.9 |          1:0.9 |  +0.0 |
  |   Code              |           5603 |           5504 |   -99 |
  |   Test              |           5072 |           5072 |     0 |
- | Test Execution Time |            10s |            11s |   +1s |

Code coverage of files in pull request scope (40.8% → 39.9%)

Files Coverage +/- Status
action.go 80.8% 0.0% modified
apply.go 1.3% 0.0% modified
compare.go 62.9% +2.2% modified
preload.go 0.0% 0.0% modified
slide.go 66.6% 0.0% modified

Reported by octocov

Copy link
Owner

@k1LoW k1LoW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's clean! Thank you!!

@k1LoW k1LoW merged commit 6097559 into main Jul 27, 2025
1 check passed
@k1LoW k1LoW deleted the compare branch July 27, 2025 23:06
@github-actions github-actions bot mentioned this pull request Jul 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants