(t *testing.T)
| 110 | } |
| 111 | |
| 112 | func TestBucketSetSingleExemplar(t *testing.T) { |
| 113 | s := newBucketSet(1, uint64(100*time.Second.Nanoseconds()), uint64(199*time.Second.Nanoseconds())) //nolint: gosec // G115 |
| 114 | tsMilli := uint64(100 * time.Second.Milliseconds()) //nolint: gosec // G115 |
| 115 | assert.False(t, s.addAndTest(tsMilli), "ts=%d should be added to bucket", 100) |
| 116 | assert.True(t, s.addAndTest(tsMilli), "ts=%d should not be added to bucket", 100) |
| 117 | } |
| 118 | |
| 119 | func TestBucketSetLargeExemplarsShortRange(t *testing.T) { |
| 120 | // exemplars=10000 → buckets=5000, but the range is only 1 second (1000ms interval). |
nothing calls this directly
no test coverage detected