(t *testing.T, opts *testOptions)
| 644 | testLargeRequest(t, &testOptions{workerScript: "large-request.php"}) |
| 645 | } |
| 646 | func 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 | |
| 659 | func TestVersion(t *testing.T) { |
| 660 | v := frankenphp.Version() |
no test coverage detected