-
Notifications
You must be signed in to change notification settings - Fork 175
/
report_writer_factory.go
44 lines (34 loc) · 1.21 KB
/
report_writer_factory.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by mockery v2.21.4. DO NOT EDIT.
package mock
import (
reporters "github.com/onflow/flow-go/cmd/util/ledger/reporters"
mock "github.com/stretchr/testify/mock"
)
// ReportWriterFactory is an autogenerated mock type for the ReportWriterFactory type
type ReportWriterFactory struct {
mock.Mock
}
// ReportWriter provides a mock function with given fields: dataNamespace
func (_m *ReportWriterFactory) ReportWriter(dataNamespace string) reporters.ReportWriter {
ret := _m.Called(dataNamespace)
var r0 reporters.ReportWriter
if rf, ok := ret.Get(0).(func(string) reporters.ReportWriter); ok {
r0 = rf(dataNamespace)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(reporters.ReportWriter)
}
}
return r0
}
type mockConstructorTestingTNewReportWriterFactory interface {
mock.TestingT
Cleanup(func())
}
// NewReportWriterFactory creates a new instance of ReportWriterFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewReportWriterFactory(t mockConstructorTestingTNewReportWriterFactory) *ReportWriterFactory {
mock := &ReportWriterFactory{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}