github.com/koko1123/flow-go-1@v0.29.6/network/mocknetwork/adapter.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mocknetwork
     4  
     5  import (
     6  	flow "github.com/koko1123/flow-go-1/model/flow"
     7  	channels "github.com/koko1123/flow-go-1/network/channels"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // Adapter is an autogenerated mock type for the Adapter type
    13  type Adapter struct {
    14  	mock.Mock
    15  }
    16  
    17  // MulticastOnChannel provides a mock function with given fields: _a0, _a1, _a2, _a3
    18  func (_m *Adapter) MulticastOnChannel(_a0 channels.Channel, _a1 interface{}, _a2 uint, _a3 ...flow.Identifier) error {
    19  	_va := make([]interface{}, len(_a3))
    20  	for _i := range _a3 {
    21  		_va[_i] = _a3[_i]
    22  	}
    23  	var _ca []interface{}
    24  	_ca = append(_ca, _a0, _a1, _a2)
    25  	_ca = append(_ca, _va...)
    26  	ret := _m.Called(_ca...)
    27  
    28  	var r0 error
    29  	if rf, ok := ret.Get(0).(func(channels.Channel, interface{}, uint, ...flow.Identifier) error); ok {
    30  		r0 = rf(_a0, _a1, _a2, _a3...)
    31  	} else {
    32  		r0 = ret.Error(0)
    33  	}
    34  
    35  	return r0
    36  }
    37  
    38  // PublishOnChannel provides a mock function with given fields: _a0, _a1, _a2
    39  func (_m *Adapter) PublishOnChannel(_a0 channels.Channel, _a1 interface{}, _a2 ...flow.Identifier) error {
    40  	_va := make([]interface{}, len(_a2))
    41  	for _i := range _a2 {
    42  		_va[_i] = _a2[_i]
    43  	}
    44  	var _ca []interface{}
    45  	_ca = append(_ca, _a0, _a1)
    46  	_ca = append(_ca, _va...)
    47  	ret := _m.Called(_ca...)
    48  
    49  	var r0 error
    50  	if rf, ok := ret.Get(0).(func(channels.Channel, interface{}, ...flow.Identifier) error); ok {
    51  		r0 = rf(_a0, _a1, _a2...)
    52  	} else {
    53  		r0 = ret.Error(0)
    54  	}
    55  
    56  	return r0
    57  }
    58  
    59  // UnRegisterChannel provides a mock function with given fields: channel
    60  func (_m *Adapter) UnRegisterChannel(channel channels.Channel) error {
    61  	ret := _m.Called(channel)
    62  
    63  	var r0 error
    64  	if rf, ok := ret.Get(0).(func(channels.Channel) error); ok {
    65  		r0 = rf(channel)
    66  	} else {
    67  		r0 = ret.Error(0)
    68  	}
    69  
    70  	return r0
    71  }
    72  
    73  // UnicastOnChannel provides a mock function with given fields: _a0, _a1, _a2
    74  func (_m *Adapter) UnicastOnChannel(_a0 channels.Channel, _a1 interface{}, _a2 flow.Identifier) error {
    75  	ret := _m.Called(_a0, _a1, _a2)
    76  
    77  	var r0 error
    78  	if rf, ok := ret.Get(0).(func(channels.Channel, interface{}, flow.Identifier) error); ok {
    79  		r0 = rf(_a0, _a1, _a2)
    80  	} else {
    81  		r0 = ret.Error(0)
    82  	}
    83  
    84  	return r0
    85  }
    86  
    87  type mockConstructorTestingTNewAdapter interface {
    88  	mock.TestingT
    89  	Cleanup(func())
    90  }
    91  
    92  // NewAdapter creates a new instance of Adapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    93  func NewAdapter(t mockConstructorTestingTNewAdapter) *Adapter {
    94  	mock := &Adapter{}
    95  	mock.Mock.Test(t)
    96  
    97  	t.Cleanup(func() { mock.AssertExpectations(t) })
    98  
    99  	return mock
   100  }