Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ReadDirOrFail (0.23 sec)

  1. pkg/test/util/file/file.go

    			if filepath.Ext(d.Name()) == ext {
    				matched = true
    				break
    			}
    		}
    		if matched {
    			res = append(res, filepath.Join(filePath, d.Name()))
    		}
    	}
    	return res, nil
    }
    
    func ReadDirOrFail(t test.Failer, filePath string, extensions ...string) []string {
    	t.Helper()
    	res, err := ReadDir(filePath, extensions...)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 17 02:22:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top