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

Function testThreadCalculation

phpmainthread_test.go:310–317  ·  view source on GitHub ↗
(t *testing.T, expectedNumThreads int, expectedMaxThreads int, o *opt)

Source from the content-addressed store, hash-verified

308}
309
310func testThreadCalculation(t *testing.T, expectedNumThreads int, expectedMaxThreads int, o *opt) {
311 t.Helper()
312
313 _, err := calculateMaxThreads(o)
314 assert.NoError(t, err, "no error should be returned")
315 assert.Equal(t, expectedNumThreads, o.numThreads, "num_threads must be correct")
316 assert.Equal(t, expectedMaxThreads, o.maxThreads, "max_threads must be correct")
317}
318
319func testThreadCalculationError(t *testing.T, o *opt) {
320 t.Helper()

Callers 1

Calls 1

calculateMaxThreadsFunction · 0.85

Tested by

no test coverage detected