Skip to content

Commit

Permalink
test hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
laktak committed Oct 21, 2024
1 parent 8eab0f1 commit 03acfd8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,21 @@ func TestRoot(t *testing.T) {
checkOut(t, sout, "- 0 file hashes were added")
checkOut(t, sout, "- 1 file hash was updated")
})

// ignore hidden
t.Run("ignore-hidden", func(t *testing.T) {

genFiles(filepath.Join(root, "way/.hidden"), 99)
genFile(filepath.Join(root, "time/.ignored"), 999)

cmd := exec.Command(tool, "-u", root)
out, err := cmd.Output()
if err != nil {
t.Fatalf("failed with '%s'\n", err)
}
sout := string(out)
checkOut(t, sout, "Processed 295 files")
})
}

func TestDMG(t *testing.T) {
Expand Down

0 comments on commit 03acfd8

Please sign in to comment.