github.com/wfusion/gofusion@v1.1.14/metrics/mock.go (about) 1 package metrics 2 3 import ( 4 "context" 5 6 "github.com/wfusion/gofusion/common/infra/metrics" 7 ) 8 9 type mock struct { 10 *abstract 11 } 12 13 func newMock(ctx context.Context, appName, name, job string, conf *cfg) Sink { 14 sink := new(metrics.BlackholeSink) 15 return &mock{abstract: newMetrics(ctx, appName, name, job, sink, conf)} 16 }