(t *testing.T)
| 175 | |
| 176 | func TestFinishRequest_module(t *testing.T) { testFinishRequest(t, nil) } |
| 177 | func TestFinishRequest_worker(t *testing.T) { |
| 178 | testFinishRequest(t, &testOptions{workerScript: "finish-request.php"}) |
| 179 | } |
| 180 | func testFinishRequest(t *testing.T, opts *testOptions) { |
| 181 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) { |
| 182 | body, _ := testGet(fmt.Sprintf("http://example.com/finish-request.php?i=%d", i), handler, t) |
nothing calls this directly
no test coverage detected