github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/mocknetwork/violations_consumer.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mocknetwork
     4  
     5  import (
     6  	network "github.com/onflow/flow-go/network"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // ViolationsConsumer is an autogenerated mock type for the ViolationsConsumer type
    11  type ViolationsConsumer struct {
    12  	mock.Mock
    13  }
    14  
    15  // OnInvalidMsgError provides a mock function with given fields: violation
    16  func (_m *ViolationsConsumer) OnInvalidMsgError(violation *network.Violation) {
    17  	_m.Called(violation)
    18  }
    19  
    20  // OnSenderEjectedError provides a mock function with given fields: violation
    21  func (_m *ViolationsConsumer) OnSenderEjectedError(violation *network.Violation) {
    22  	_m.Called(violation)
    23  }
    24  
    25  // OnUnAuthorizedSenderError provides a mock function with given fields: violation
    26  func (_m *ViolationsConsumer) OnUnAuthorizedSenderError(violation *network.Violation) {
    27  	_m.Called(violation)
    28  }
    29  
    30  // OnUnauthorizedPublishOnChannel provides a mock function with given fields: violation
    31  func (_m *ViolationsConsumer) OnUnauthorizedPublishOnChannel(violation *network.Violation) {
    32  	_m.Called(violation)
    33  }
    34  
    35  // OnUnauthorizedUnicastOnChannel provides a mock function with given fields: violation
    36  func (_m *ViolationsConsumer) OnUnauthorizedUnicastOnChannel(violation *network.Violation) {
    37  	_m.Called(violation)
    38  }
    39  
    40  // OnUnexpectedError provides a mock function with given fields: violation
    41  func (_m *ViolationsConsumer) OnUnexpectedError(violation *network.Violation) {
    42  	_m.Called(violation)
    43  }
    44  
    45  // OnUnknownMsgTypeError provides a mock function with given fields: violation
    46  func (_m *ViolationsConsumer) OnUnknownMsgTypeError(violation *network.Violation) {
    47  	_m.Called(violation)
    48  }
    49  
    50  type mockConstructorTestingTNewViolationsConsumer interface {
    51  	mock.TestingT
    52  	Cleanup(func())
    53  }
    54  
    55  // NewViolationsConsumer creates a new instance of ViolationsConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    56  func NewViolationsConsumer(t mockConstructorTestingTNewViolationsConsumer) *ViolationsConsumer {
    57  	mock := &ViolationsConsumer{}
    58  	mock.Mock.Test(t)
    59  
    60  	t.Cleanup(func() { mock.AssertExpectations(t) })
    61  
    62  	return mock
    63  }