Lines Matching refs:t

26 func Write(t *testing.T, path string, content string, filesystem *MockFs) {
31 t.Fatal(err.Error())
35 func Create(t *testing.T, path string, filesystem *MockFs) {
36 Write(t, path, "hi", filesystem)
39 func Delete(t *testing.T, path string, filesystem *MockFs) {
42 t.Fatal(err.Error())
46 func RemoveAll(t *testing.T, path string, filesystem *MockFs) {
49 t.Fatal(err.Error())
53 func Move(t *testing.T, oldPath string, newPath string, filesystem *MockFs) {
56 t.Fatal(err.Error())
60 func Link(t *testing.T, newPath string, oldPath string, filesystem *MockFs) {
64 t.Fatal(err.Error())
68 t.Fatal(err.Error())
72 func Read(t *testing.T, path string, filesystem *MockFs) string {
75 t.Fatalf(err.Error())
79 t.Fatal(err.Error())
84 func ModTime(t *testing.T, path string, filesystem *MockFs) time.Time {
87 t.Fatal(err.Error())
92 func SetReadable(t *testing.T, path string, readable bool, filesystem *MockFs) {
95 t.Fatal(err.Error())
99 func SetReadErr(t *testing.T, path string, readErr error, filesystem *MockFs) {
102 t.Fatal(err.Error())
106 func AssertSameResponse(t *testing.T, actual []string, expected []string) {
107 t.Helper()
111t.Fatalf("Expected Finder to return these %v paths:\n %v,\ninstead returned these %v paths: %v\n…
116 func AssertSameStatCalls(t *testing.T, actual []string, expected []string) {
117 t.Helper()
122 t.Fatalf("Finder made incorrect Stat calls.\n"+
132 func AssertSameReadDirCalls(t *testing.T, actual []string, expected []string) {
133 t.Helper()
138 t.Fatalf("Finder made incorrect ReadDir calls.\n"+