(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func 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 | |
| 71 | func TestHandleHook_LogsCommand(t *testing.T) { |
| 72 | tests := []struct { |
nothing calls this directly
no test coverage detected