优化
This commit is contained in:
truewhile
2026-08-24 17:40:43 +08:00
parent 99ef2ed410
commit 44ca451cd4
374 changed files with 1029 additions and 1028 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"path/filepath"
"testing"
"github.com/ShukeBta/MediaStationGo/internal/config"
"github.com/ShukeBta/MMTL/internal/config"
)
func TestBackupFilePathRejectsTraversal(t *testing.T) {
@@ -15,7 +15,7 @@ func TestBackupFilePathRejectsTraversal(t *testing.T) {
t.Fatalf("backupFilePath(%q) allowed traversal or non-backup file", name)
}
}
path, err := svc.backupFilePath("mediastation_20260611_010203.db")
path, err := svc.backupFilePath("mmtl_20260611_010203.db")
if err != nil {
t.Fatalf("backupFilePath(valid) = %v", err)
}