(t *testing.T)
| 183 | } |
| 184 | |
| 185 | func TestSetAndGet(t *testing.T) { |
| 186 | c := subscriptions.NewDefaultClient() |
| 187 | |
| 188 | c.Set("demo", 1) |
| 189 | |
| 190 | result, _ := c.Get("demo").(int) |
| 191 | |
| 192 | if result != 1 { |
| 193 | t.Errorf("Expected 1, got %v", result) |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | func TestDiscard(t *testing.T) { |
| 198 | c := subscriptions.NewDefaultClient() |
nothing calls this directly
no test coverage detected
searching dependent graphs…