Skip to content

Commit

Permalink
add reporter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddy committed Nov 27, 2023
1 parent 03ac0fb commit 44e43a4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,18 +856,6 @@ func TestReporter(t *testing.T) {

}

// reporter.AssertNumberOfCalls(t, "ReportMiss", 1)
// reporter.AssertNumberOfCalls(t, "ReportHit", 0)

// processor.EXPECT().ToMapKey(mock.Anything).Return("Keats", nil).Times(1)
// processor.EXPECT().CacheMissSolver(mock.Anything).Return(nil, nil).Times(1)
// _, err = cache.RetrieveFromCacheOrCompute(&RequestEntry{})
// assert.Nil(err)
// reporter.AssertNumberOfCalls(t, "ReportMiss", 1)
// reporter.AssertNumberOfCalls(t, "ReportHit", 1)

// benchmark to test the performance of the cache
// when the processor should perform an addition task
type BenchProcessor struct{}

type Adder struct {
Expand Down

0 comments on commit 44e43a4

Please sign in to comment.