Lines Matching refs:t
31 func TestCreateFileWithRotation(t *testing.T) {
34 t.Fatalf("Failed to get TempDir: %v", err)
43 t.Fatalf("Failed to create file: %v", err)
46 t.Fatalf("Short write")
48 t.Fatalf("Failed to write: %v", err)
51 t.Fatalf("Failed to close: %v", err)
63 t.Fatalf("Failed to open dir: %v", err)
67 t.Fatalf("Failed to read dir: %v", err)
72 t.Errorf("File list does not match.")
73 t.Errorf(" got: %v", names)
74 t.Errorf("expected: %v", expected)
75 t.FailNow()
81 t.Errorf("Error reading file: %v", err)
86 t.Errorf("Contents of %v does not match.", name)
87 t.Errorf(" got: %v", data)
88 t.Errorf("expected: %v", expected)
98 func TestPanic(t *testing.T) {
127 t.Errorf("Expected process to exit with status 42, got %v", err)
130 func TestFatal(t *testing.T) {
149 t.Errorf("Expected process to exit with status 1, got %v", err)
152 func TestNonFatal(t *testing.T) {
164 t.Errorf("Expected process to exit cleanly, got %v", err)
168 func TestRecoverFatal(t *testing.T) {
172 t.Errorf("Unexpected panic: %#v", p)
177 t.Errorf("Expected %q, but got %q", "Test", err.Error())
181 t.Errorf("Should not get here")
184 func TestRecoverNonFatal(t *testing.T) {
188 t.Errorf("Panic not thrown")
190 t.Errorf("Expected %q, but got %#v", "Test", p)
194 t.Errorf("Recover function should not be called")
197 t.Errorf("Should not get here")
200 func TestRuntimePanic(t *testing.T) {
203 t.Errorf("Panic not thrown")
207 t.Errorf("Recover function should not be called")
211 t.Errorf("Should not get here")