MCPcopy Index your code
hub / github.com/php/frankenphp / TestHeaders_worker

Function TestHeaders_worker

frankenphp_test.go:263–263  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

261
262func TestHeaders_module(t *testing.T) { testHeaders(t, nil) }
263func TestHeaders_worker(t *testing.T) { testHeaders(t, &testOptions{workerScript: "headers.php"}) }
264func testHeaders(t *testing.T, opts *testOptions) {
265 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
266 body, resp := testGet(fmt.Sprintf("http://example.com/headers.php?i=%d", i), handler, t)

Callers

nothing calls this directly

Calls 1

testHeadersFunction · 0.85

Tested by

no test coverage detected