(t *testing.T, opts *testOptions)
| 477 | testAutoloader(t, &testOptions{workerScript: "autoloader.php"}) |
| 478 | } |
| 479 | func testAutoloader(t *testing.T, opts *testOptions) { |
| 480 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) { |
| 481 | body, _ := testGet(fmt.Sprintf("http://example.com/autoloader.php?i=%d", i), handler, t) |
| 482 | |
| 483 | assert.Equal(t, fmt.Sprintf(`request %d |
| 484 | my_autoloader`, i), body) |
| 485 | }, opts) |
| 486 | } |
| 487 | |
| 488 | func TestLog_error_log_module(t *testing.T) { testLog_error_log(t, &testOptions{}) } |
| 489 | func TestLog_error_log_worker(t *testing.T) { |
no test coverage detected