(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestHandleHook_InvalidJSON(t *testing.T) { |
| 55 | var buf bytes.Buffer |
| 56 | err := handleHook(t.Context(), []string{"not json"}, &buf) |
| 57 | assert.NilError(t, err) |
| 58 | assert.Equal(t, buf.String(), "") |
| 59 | } |
| 60 | |
| 61 | func TestHandleHook_UnknownCommand(t *testing.T) { |
| 62 | data := marshalHookData(t, hooks.Request{ |
nothing calls this directly
no test coverage detected