A previous PR from @vincent6767 had nicer mock Kinesis client that simplified setting up data for the tests. Mock client pulled from: https://github.com/harlow/kinesis-consumer/pull/64
11 lines
266 B
Go
11 lines
266 B
Go
package consumer
|
|
|
|
// Counter interface is used for exposing basic metrics from the scanner
|
|
type Counter interface {
|
|
Add(string, int64)
|
|
}
|
|
|
|
// noopCounter implements counter interface with discard
|
|
type noopCounter struct{}
|
|
|
|
func (n noopCounter) Add(string, int64) {}
|