(t *testing.T)
| 318 | } |
| 319 | |
| 320 | func TestHooksOnUnsubscribe(t *testing.T) { |
| 321 | h := new(Hooks) |
| 322 | err := h.Add(new(modifiedHookBase), nil) |
| 323 | require.NoError(t, err) |
| 324 | |
| 325 | pki := packets.Packet{ |
| 326 | Filters: packets.Subscriptions{ |
| 327 | {Filter: "a/b/c", Qos: 1}, |
| 328 | }, |
| 329 | } |
| 330 | |
| 331 | pk := h.OnUnsubscribe(new(Client), pki) |
| 332 | require.EqualValues(t, pk, pki) |
| 333 | } |
| 334 | |
| 335 | func TestHooksOnPublish(t *testing.T) { |
| 336 | h := new(Hooks) |
nothing calls this directly
no test coverage detected