(t *testing.T)
| 72 | require.Equal(t, int64(42), s.Get()["key"]) |
| 73 | } |
| 74 | |
| 75 | func TestGetMultipleKeys(t *testing.T) { |
| 76 | s := NewStats() |
| 77 | s.SetCounter("a", 1) |
| 78 | s.SetCounter("b", 2) |
| 79 | s.SetCounter("c", 3) |
| 80 | got := s.Get() |
| 81 | require.Equal(t, int64(1), got["a"]) |
| 82 | require.Equal(t, int64(2), got["b"]) |
| 83 | require.Equal(t, int64(3), got["c"]) |
| 84 | require.Len(t, got, 3) |
| 85 | } |
| 86 | |
| 87 | func TestCopy(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…