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

Function testLargeRequest

frankenphp_test.go:646–657  ·  view source on GitHub ↗
(t *testing.T, opts *testOptions)

Source from the content-addressed store, hash-verified

644 testLargeRequest(t, &testOptions{workerScript: "large-request.php"})
645}
646func testLargeRequest(t *testing.T, opts *testOptions) {
647 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
648 body, _ := testPost(
649 fmt.Sprintf("http://example.com/large-request.php?i=%d", i),
650 strings.Repeat("f", 6_048_576),
651 handler,
652 t,
653 )
654
655 assert.Contains(t, body, fmt.Sprintf("Request body size: 6048576 (%d)", i))
656 }, opts)
657}
658
659func TestVersion(t *testing.T) {
660 v := frankenphp.Version()

Callers 2

TestLargeRequest_moduleFunction · 0.85
TestLargeRequest_workerFunction · 0.85

Calls 2

runTestFunction · 0.85
testPostFunction · 0.85

Tested by

no test coverage detected