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

Function getDummyWorker

phpmainthread_test.go:218–232  ·  view source on GitHub ↗
(t *testing.T, fileName string)

Source from the content-addressed store, hash-verified

216}
217
218func getDummyWorker(t *testing.T, fileName string) *worker {
219 t.Helper()
220
221 if workers == nil {
222 workers = []*worker{}
223 }
224
225 worker, _ := newWorker(workerOpt{
226 fileName: testDataPath + "/" + fileName,
227 num: 1,
228 })
229 workers = append(workers, worker)
230
231 return worker
232}
233
234func assertRequestBody(t *testing.T, url string, expected string) {
235 r := httptest.NewRequest("GET", url, nil)

Calls 1

newWorkerFunction · 0.85

Tested by

no test coverage detected