(t *testing.T)
| 188 | testServerVariable(t, nil) |
| 189 | } |
| 190 | func TestServerVariable_worker(t *testing.T) { |
| 191 | testServerVariable(t, &testOptions{workerScript: "server-variable.php"}) |
| 192 | } |
| 193 | func testServerVariable(t *testing.T, opts *testOptions) { |
| 194 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) { |
| 195 | req := httptest.NewRequest("POST", fmt.Sprintf("http://example.com/server-variable.php/baz/bat?foo=a&bar=b&i=%d#hash", i), strings.NewReader("foo")) |
nothing calls this directly
no test coverage detected