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

Function TestHandleHook_UnknownCommand

cmd/compose/hooks_test.go:61–69  ·  cmd/compose/hooks_test.go::TestHandleHook_UnknownCommand
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestHandleHook_UnknownCommand(t *testing.T) {
62 data := marshalHookData(t, hooks.Request{
63 RootCmd: "compose push",
64 })
65 var buf bytes.Buffer
66 err := handleHook(t.Context(), []string{data}, &buf)
67 assert.NilError(t, err)
68 assert.Equal(t, buf.String(), "")
69}
70
71func TestHandleHook_LogsCommand(t *testing.T) {
72 tests := []struct {

Callers

nothing calls this directly

Calls 3

marshalHookDataFunction · 0.85
handleHookFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected