mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
chore: fmt
This commit is contained in:
committed by
Kujtim Hoxha
parent
ae421e29b0
commit
3e213e89aa
@@ -18,12 +18,12 @@ func TestCrushIgnore(t *testing.T) {
|
||||
defer os.Chdir(oldWd)
|
||||
|
||||
// Create test files
|
||||
require.NoError(t, os.WriteFile("test1.txt", []byte("test"), 0644))
|
||||
require.NoError(t, os.WriteFile("test2.log", []byte("test"), 0644))
|
||||
require.NoError(t, os.WriteFile("test3.tmp", []byte("test"), 0644))
|
||||
require.NoError(t, os.WriteFile("test1.txt", []byte("test"), 0o644))
|
||||
require.NoError(t, os.WriteFile("test2.log", []byte("test"), 0o644))
|
||||
require.NoError(t, os.WriteFile("test3.tmp", []byte("test"), 0o644))
|
||||
|
||||
// Create a .crushignore file that ignores .log files
|
||||
require.NoError(t, os.WriteFile(".crushignore", []byte("*.log\n"), 0644))
|
||||
require.NoError(t, os.WriteFile(".crushignore", []byte("*.log\n"), 0o644))
|
||||
|
||||
// Test DirectoryLister
|
||||
t.Run("DirectoryLister respects .crushignore", func(t *testing.T) {
|
||||
@@ -37,8 +37,8 @@ func TestCrushIgnore(t *testing.T) {
|
||||
// Test FastGlobWalker
|
||||
t.Run("FastGlobWalker respects .crushignore", func(t *testing.T) {
|
||||
walker := NewFastGlobWalker(tempDir)
|
||||
|
||||
|
||||
require.True(t, walker.gitignore == nil, "gitignore should be nil")
|
||||
require.NotNil(t, walker.crushignore, "crushignore should not be nil")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user