This commit is contained in:
ryan
2026-07-13 15:08:40 +08:00
parent 08e8eea932
commit 1eff7878a1
441 changed files with 26491 additions and 18405 deletions
+1 -1
View File
@@ -50,4 +50,4 @@ func TestMillisecondDurationMarshalJSON(t *testing.T) {
if string(data) != "7000" {
t.Fatalf("unexpected marshaled value: %s", string(data))
}
}
}
+1 -1
View File
@@ -20,4 +20,4 @@ func RunLoop(ctx context.Context, interval time.Duration, fn func(context.Contex
fn(ctx)
}
}
}
}
+1 -1
View File
@@ -38,4 +38,4 @@ func TestRunLoopImmediateAndTicker(t *testing.T) {
case <-time.After(time.Second):
t.Fatal("RunLoop did not exit after context cancellation")
}
}
}
@@ -75,4 +75,4 @@ func TestStatFilesystem(t *testing.T) {
if used < 0 || used > total {
t.Fatalf("StatFilesystem() used = %d, total = %d", used, total)
}
}
}
@@ -12,4 +12,4 @@ func TestRemoveBackupBinaryIgnoresMissingFile(t *testing.T) {
if err := removeBackupBinary(backupPath); err != nil {
t.Fatalf("expected missing backup cleanup to be ignored: %v", err)
}
}
}
@@ -50,4 +50,4 @@ func buildWindowsCommandLine(execPath string, args []string) string {
func quoteWindowsArg(value string) string {
return `"` + strings.ReplaceAll(value, `"`, `""`) + `"`
}
}
+1 -1
View File
@@ -63,4 +63,4 @@ func TestClientURL(t *testing.T) {
}
})
}
}
}