(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestNewDefaultClient(t *testing.T) { |
| 14 | c := subscriptions.NewDefaultClient() |
| 15 | |
| 16 | if c.Channel() == nil { |
| 17 | t.Errorf("Expected channel to be initialized") |
| 18 | } |
| 19 | |
| 20 | if c.Subscriptions() == nil { |
| 21 | t.Errorf("Expected subscriptions map to be initialized") |
| 22 | } |
| 23 | |
| 24 | if c.Id() == "" { |
| 25 | t.Errorf("Expected unique id to be set") |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func TestId(t *testing.T) { |
| 30 | clients := []*subscriptions.DefaultClient{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…