2021-01-20 01:21:15 +03:00
|
|
|
package meter
|
2020-11-15 00:38:38 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestNoopReporter(t *testing.T) {
|
|
|
|
// Make a Reporter:
|
|
|
|
reporter := NewReporter(Path("/noop"))
|
|
|
|
assert.NotNil(t, reporter)
|
|
|
|
assert.Equal(t, "/noop", reporter.Options().Path)
|
|
|
|
|
|
|
|
// Check that our implementation is valid:
|
|
|
|
assert.Implements(t, new(Reporter), reporter)
|
|
|
|
}
|