(t *testing.T)
| 459 | |
| 460 | func TestPersistentObject_module(t *testing.T) { testPersistentObject(t, nil) } |
| 461 | func TestPersistentObject_worker(t *testing.T) { |
| 462 | testPersistentObject(t, &testOptions{workerScript: "persistent-object.php"}) |
| 463 | } |
| 464 | func testPersistentObject(t *testing.T, opts *testOptions) { |
| 465 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) { |
| 466 | body, _ := testGet(fmt.Sprintf("http://example.com/persistent-object.php?i=%d", i), handler, t) |
nothing calls this directly
no test coverage detected