(t *testing.T, opts *testOptions)
| 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) |
| 183 | assert.Equal(t, fmt.Sprintf("This is output %d\n", i), body) |
| 184 | }, opts) |
| 185 | } |
| 186 | |
| 187 | func TestServerVariable_module(t *testing.T) { |
| 188 | testServerVariable(t, nil) |
no test coverage detected