1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 19:09:43 +00:00

chore: auto format code

This commit is contained in:
Tw93
2025-12-11 03:34:13 +00:00
parent dd841891ad
commit aac0841759

View File

@@ -333,7 +333,7 @@ func TestScanPathPermissionError(t *testing.T) {
if err := os.Mkdir(lockedDir, 0o755); err != nil {
t.Fatalf("create locked dir: %v", err)
}
// Create a file inside before locking, just to be sure
if err := os.WriteFile(filepath.Join(lockedDir, "secret.txt"), []byte("shh"), 0o644); err != nil {
t.Fatalf("write secret: %v", err)
@@ -350,7 +350,7 @@ func TestScanPathPermissionError(t *testing.T) {
var files, dirs, bytes int64
current := ""
// Scanning the locked dir itself should fail
_, err := scanPathConcurrent(lockedDir, &files, &dirs, &bytes, &current)
if err == nil {
@@ -359,4 +359,4 @@ func TestScanPathPermissionError(t *testing.T) {
if !os.IsPermission(err) {
t.Logf("unexpected error type: %v", err)
}
}
}