chore: bump Go 1.18→1.26, fix typos, clean up tests

- Update go.mod to Go 1.26
- Fix help text typos ('menut' → 'menu', 'most-significant' → 'most-specific')
- Fix error comment typo ('ll' → 'all')
- Remove unnecessary fmt.Sprintf in test names
- Remove unused fmt imports from test files
- Add compile-time interface check for TimeWindow
This commit is contained in:
2026-02-22 21:01:23 +00:00
parent 433d28a87b
commit 8b431b5d2f
7 changed files with 12 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
package msp
import (
"fmt"
"testing"
"time"
)
@@ -146,7 +145,7 @@ func TestMostSpecificPeriod(t *testing.T) {
},
}
for _, tc := range testCases {
t.Run(fmt.Sprintf("%s", tc.testID), func(t *testing.T) {
t.Run(tc.testID, func(t *testing.T) {
id, err := MostSpecificPeriod(tc.ts, tc.periods...)
if id != tc.result {
t.Errorf("ID '%s' does not match expected '%s'", id, tc.result)