File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ func TestList(t *testing.T) {
75
75
files , err := fs .List (tC .prefix , tC .suffix )
76
76
if err != nil {
77
77
t .Errorf ("got error while executing list: %v" , err )
78
-
79
78
}
80
79
81
80
if len (files ) != len (tC .wantFiles ) {
@@ -174,13 +173,14 @@ func setupTestFiles(t *testing.T) string {
174
173
175
174
func createTestFile (t * testing.T , path , content string ) {
176
175
t .Helper ()
177
- if err := os .WriteFile (path , []byte (content ), 0644 ); err != nil {
176
+ if err := os .WriteFile (path , []byte (content ), 0o644 ); err != nil {
178
177
t .Fatalf ("error while creating file %s: %v" , path , err )
179
178
}
180
179
}
180
+
181
181
func createTestDir (t * testing.T , path string ) {
182
182
t .Helper ()
183
- if err := os .Mkdir (path , 0755 ); err != nil {
183
+ if err := os .Mkdir (path , 0o755 ); err != nil {
184
184
t .Fatalf ("error while creating dir %s: %v" , path , err )
185
185
}
186
186
}
You can’t perform that action at this time.
0 commit comments