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

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mocknetwork
     4  
     5  import (
     6  	flow "github.com/onflow/flow-go/model/flow"
     7  	channels "github.com/onflow/flow-go/network/channels"
     8  
     9  	message "github.com/onflow/flow-go/network/message"
    10  
    11  	mock "github.com/stretchr/testify/mock"
    12  )
    13  
    14  // OutgoingMessageScope is an autogenerated mock type for the OutgoingMessageScope type
    15  type OutgoingMessageScope struct {
    16  	mock.Mock
    17  }
    18  
    19  // PayloadType provides a mock function with given fields:
    20  func (_m *OutgoingMessageScope) PayloadType() string {
    21  	ret := _m.Called()
    22  
    23  	var r0 string
    24  	if rf, ok := ret.Get(0).(func() string); ok {
    25  		r0 = rf()
    26  	} else {
    27  		r0 = ret.Get(0).(string)
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  // Proto provides a mock function with given fields:
    34  func (_m *OutgoingMessageScope) Proto() *message.Message {
    35  	ret := _m.Called()
    36  
    37  	var r0 *message.Message
    38  	if rf, ok := ret.Get(0).(func() *message.Message); ok {
    39  		r0 = rf()
    40  	} else {
    41  		if ret.Get(0) != nil {
    42  			r0 = ret.Get(0).(*message.Message)
    43  		}
    44  	}
    45  
    46  	return r0
    47  }
    48  
    49  // Size provides a mock function with given fields:
    50  func (_m *OutgoingMessageScope) Size() int {
    51  	ret := _m.Called()
    52  
    53  	var r0 int
    54  	if rf, ok := ret.Get(0).(func() int); ok {
    55  		r0 = rf()
    56  	} else {
    57  		r0 = ret.Get(0).(int)
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // TargetIds provides a mock function with given fields:
    64  func (_m *OutgoingMessageScope) TargetIds() flow.IdentifierList {
    65  	ret := _m.Called()
    66  
    67  	var r0 flow.IdentifierList
    68  	if rf, ok := ret.Get(0).(func() flow.IdentifierList); ok {
    69  		r0 = rf()
    70  	} else {
    71  		if ret.Get(0) != nil {
    72  			r0 = ret.Get(0).(flow.IdentifierList)
    73  		}
    74  	}
    75  
    76  	return r0
    77  }
    78  
    79  // Topic provides a mock function with given fields:
    80  func (_m *OutgoingMessageScope) Topic() channels.Topic {
    81  	ret := _m.Called()
    82  
    83  	var r0 channels.Topic
    84  	if rf, ok := ret.Get(0).(func() channels.Topic); ok {
    85  		r0 = rf()
    86  	} else {
    87  		r0 = ret.Get(0).(channels.Topic)
    88  	}
    89  
    90  	return r0
    91  }
    92  
    93  type mockConstructorTestingTNewOutgoingMessageScope interface {
    94  	mock.TestingT
    95  	Cleanup(func())
    96  }
    97  
    98  // NewOutgoingMessageScope creates a new instance of OutgoingMessageScope. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    99  func NewOutgoingMessageScope(t mockConstructorTestingTNewOutgoingMessageScope) *OutgoingMessageScope {
   100  	mock := &OutgoingMessageScope{}
   101  	mock.Mock.Test(t)
   102  
   103  	t.Cleanup(func() { mock.AssertExpectations(t) })
   104  
   105  	return mock
   106  }