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

Function getDebugState

caddy/admin_test.go:258–267  ·  view source on GitHub ↗
(t *testing.T, tester *caddytest.Tester)

Source from the content-addressed store, hash-verified

256}
257
258func getDebugState(t *testing.T, tester *caddytest.Tester) frankenphp.FrankenPHPDebugState {
259 t.Helper()
260 threadStates := getAdminResponseBody(t, tester, "GET", "threads")
261
262 var debugStates frankenphp.FrankenPHPDebugState
263 err := json.Unmarshal([]byte(threadStates), &debugStates)
264 assert.NoError(t, err)
265
266 return debugStates
267}
268
269func getNumThreads(t *testing.T, tester *caddytest.Tester) int {
270 t.Helper()

Calls 1

getAdminResponseBodyFunction · 0.85

Tested by

no test coverage detected