meter: rework meter interface

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-22 18:21:40 +03:00
parent 8a2c4c511e
commit 8494178b0d
7 changed files with 221 additions and 82 deletions

14
meter/meter_test.go Normal file
View File

@@ -0,0 +1,14 @@
package meter
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNoopMeter(t *testing.T) {
meter := NewMeter(Path("/noop"))
assert.NotNil(t, meter)
assert.Equal(t, "/noop", meter.Options().Path)
assert.Implements(t, new(Meter), meter)
}