(t *testing.T)
| 289 | } |
| 290 | |
| 291 | func TestHooksOnSubscribe(t *testing.T) { |
| 292 | h := new(Hooks) |
| 293 | err := h.Add(new(modifiedHookBase), nil) |
| 294 | require.NoError(t, err) |
| 295 | |
| 296 | pki := packets.Packet{ |
| 297 | Filters: packets.Subscriptions{ |
| 298 | {Filter: "a/b/c", Qos: 1}, |
| 299 | }, |
| 300 | } |
| 301 | pk := h.OnSubscribe(new(Client), pki) |
| 302 | require.EqualValues(t, pk, pki) |
| 303 | } |
| 304 | |
| 305 | func TestHooksOnSelectSubscribers(t *testing.T) { |
| 306 | h := new(Hooks) |
nothing calls this directly
no test coverage detected