(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestKV(t *testing.T) { |
| 10 | kv := Constructor() |
| 11 | kv.Set("foo", "bar", 1) |
| 12 | kv.Set("foo", "baz", 4) |
| 13 | assert.Equal(t, "", kv.Get("foo", 0)) |
| 14 | assert.Equal(t, "bar", kv.Get("foo", 3)) |
| 15 | assert.Equal(t, "bar", kv.Get("foo", 2)) |
| 16 | assert.Equal(t, "baz", kv.Get("foo", 4)) |
| 17 | assert.Equal(t, "baz", kv.Get("foo", 6)) |
| 18 | } |
nothing calls this directly
no test coverage detected