github.com/observiq/bindplane-agent@v1.51.0/internal/report/mocks/mock_reporter.go (about)

     1  // Code generated by mockery v2.42.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // MockReporter is an autogenerated mock type for the Reporter type
     8  type MockReporter struct {
     9  	mock.Mock
    10  }
    11  
    12  // Kind provides a mock function with given fields:
    13  func (_m *MockReporter) Kind() string {
    14  	ret := _m.Called()
    15  
    16  	if len(ret) == 0 {
    17  		panic("no return value specified for Kind")
    18  	}
    19  
    20  	var r0 string
    21  	if rf, ok := ret.Get(0).(func() string); ok {
    22  		r0 = rf()
    23  	} else {
    24  		r0 = ret.Get(0).(string)
    25  	}
    26  
    27  	return r0
    28  }
    29  
    30  // Report provides a mock function with given fields: config
    31  func (_m *MockReporter) Report(config interface{}) error {
    32  	ret := _m.Called(config)
    33  
    34  	if len(ret) == 0 {
    35  		panic("no return value specified for Report")
    36  	}
    37  
    38  	var r0 error
    39  	if rf, ok := ret.Get(0).(func(interface{}) error); ok {
    40  		r0 = rf(config)
    41  	} else {
    42  		r0 = ret.Error(0)
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  // NewMockReporter creates a new instance of MockReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    49  // The first argument is typically a *testing.T value.
    50  func NewMockReporter(t interface {
    51  	mock.TestingT
    52  	Cleanup(func())
    53  }) *MockReporter {
    54  	mock := &MockReporter{}
    55  	mock.Mock.Test(t)
    56  
    57  	t.Cleanup(func() { mock.AssertExpectations(t) })
    58  
    59  	return mock
    60  }