(t *testing.T)
| 169 | } |
| 170 | |
| 171 | func TestHasSubscription(t *testing.T) { |
| 172 | c := subscriptions.NewDefaultClient() |
| 173 | |
| 174 | if c.HasSubscription("missing") { |
| 175 | t.Error("Expected false, got true") |
| 176 | } |
| 177 | |
| 178 | c.Subscribe("sub") |
| 179 | |
| 180 | if !c.HasSubscription("sub") { |
| 181 | t.Error("Expected true, got false") |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | func TestSetAndGet(t *testing.T) { |
| 186 | c := subscriptions.NewDefaultClient() |
nothing calls this directly
no test coverage detected
searching dependent graphs…