MCPcopy
hub / github.com/docker/compose / TestHandleHook_NoArgs

Function TestHandleHook_NoArgs

cmd/compose/hooks_test.go:47–52  ·  cmd/compose/hooks_test.go::TestHandleHook_NoArgs
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestHandleHook_NoArgs(t *testing.T) {
48 var buf bytes.Buffer
49 err := handleHook(t.Context(), nil, &buf)
50 assert.NilError(t, err)
51 assert.Equal(t, buf.String(), "")
52}
53
54func TestHandleHook_InvalidJSON(t *testing.T) {
55 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 2

handleHookFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected