(t *testing.T)
| 829 | } |
| 830 | |
| 831 | func TestRunCheckerWithNilTicker(t *testing.T) { |
| 832 | config := vultureConfiguration{ |
| 833 | tempoOrgID: "orgID", |
| 834 | tempoWriteBackoffDuration: time.Second, |
| 835 | } |
| 836 | |
| 837 | logger = zap.NewNop() |
| 838 | |
| 839 | checkerCalled := false |
| 840 | selectPastTimestamp := func(_ time.Time) (newStart, ts time.Time, skip bool) { |
| 841 | return time.Now(), time.Now(), false |
| 842 | } |
| 843 | checker := func(_ *util.TraceInfo, _ *zap.Logger) { |
| 844 | checkerCalled = true |
| 845 | } |
| 846 | |
| 847 | runChecker(nil, config, selectPastTimestamp, checker, logger) |
| 848 | assert.False(t, checkerCalled) |
| 849 | } |
| 850 | |
| 851 | func TestRunCheckerWithSkip(t *testing.T) { |
| 852 | config := vultureConfiguration{ |
nothing calls this directly
no test coverage detected