(t *testing.T)
| 487 | } |
| 488 | |
| 489 | func TestSetOutputDirectory(t *testing.T) { |
| 490 | outFile := "test_output_dir" |
| 491 | resp, err := tc(). |
| 492 | SetOutputDirectory(testDataPath). |
| 493 | R().SetOutputFile(outFile). |
| 494 | Get("/") |
| 495 | assertSuccess(t, resp, err) |
| 496 | content := string(getTestFileContent(t, outFile)) |
| 497 | os.Remove(tests.GetTestFilePath(outFile)) |
| 498 | tests.AssertEqual(t, "TestGet: text response", content) |
| 499 | } |
| 500 | |
| 501 | func TestSetBaseURL(t *testing.T) { |
| 502 | baseURL := "http://dummy-req.local/test" |
nothing calls this directly
no test coverage detected
searching dependent graphs…