github.com/aergoio/aergo@v1.3.1/rpc/ActorService_test.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  package rpc
     3  
     4  import (
     5  	actor "github.com/aergoio/aergo-actor/actor"
     6  	"time"
     7  )
     8  import (
     9  	"github.com/aergoio/aergo/types"
    10  	mock "github.com/stretchr/testify/mock"
    11  )
    12  
    13  // MockActorService is an autogenerated mock type for the MockActorService type
    14  type MockActorService struct {
    15  	mock.Mock
    16  }
    17  
    18  // CallRequest provides a mock function with given fields: _a0, msg, timeout
    19  func (_m *MockActorService) CallRequest(_a0 string, msg interface{}, timeout time.Duration) (interface{}, error) {
    20  	ret := _m.Called(_a0, msg, timeout)
    21  
    22  	var r0 interface{}
    23  	if rf, ok := ret.Get(0).(func(string, interface{}, time.Duration) interface{}); ok {
    24  		r0 = rf(_a0, msg, timeout)
    25  	} else {
    26  		if ret.Get(0) != nil {
    27  			r0 = ret.Get(0).(interface{})
    28  		}
    29  	}
    30  
    31  	var r1 error
    32  	if rf, ok := ret.Get(1).(func(string, interface{}, time.Duration) error); ok {
    33  		r1 = rf(_a0, msg, timeout)
    34  	} else {
    35  		r1 = ret.Error(1)
    36  	}
    37  
    38  	return r0, r1
    39  }
    40  
    41  // CallRequestDefaultTimeout provides a mock function with given fields: _a0, msg
    42  func (_m *MockActorService) CallRequestDefaultTimeout(_a0 string, msg interface{}) (interface{}, error) {
    43  	ret := _m.Called(_a0, msg)
    44  
    45  	var r0 interface{}
    46  	if rf, ok := ret.Get(0).(func(string, interface{}) interface{}); ok {
    47  		r0 = rf(_a0, msg)
    48  	} else {
    49  		if ret.Get(0) != nil {
    50  			r0 = ret.Get(0).(interface{})
    51  		}
    52  	}
    53  
    54  	var r1 error
    55  	if rf, ok := ret.Get(1).(func(string, interface{}) error); ok {
    56  		r1 = rf(_a0, msg)
    57  	} else {
    58  		r1 = ret.Error(1)
    59  	}
    60  
    61  	return r0, r1
    62  }
    63  
    64  // FutureRequest provides a mock function with given fields: _a0, msg, timeout
    65  func (_m *MockActorService) FutureRequest(_a0 string, msg interface{}, timeout time.Duration) *actor.Future {
    66  	ret := _m.Called(_a0, msg, timeout)
    67  
    68  	var r0 *actor.Future
    69  	if rf, ok := ret.Get(0).(func(string, interface{}, time.Duration) *actor.Future); ok {
    70  		r0 = rf(_a0, msg, timeout)
    71  	} else {
    72  		if ret.Get(0) != nil {
    73  			r0 = ret.Get(0).(*actor.Future)
    74  		}
    75  	}
    76  
    77  	return r0
    78  }
    79  
    80  // FutureRequestDefaultTimeout provides a mock function with given fields: _a0, msg
    81  func (_m *MockActorService) FutureRequestDefaultTimeout(_a0 string, msg interface{}) *actor.Future {
    82  	ret := _m.Called(_a0, msg)
    83  
    84  	var r0 *actor.Future
    85  	if rf, ok := ret.Get(0).(func(string, interface{}) *actor.Future); ok {
    86  		r0 = rf(_a0, msg)
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(*actor.Future)
    90  		}
    91  	}
    92  
    93  	return r0
    94  }
    95  
    96  // SendRequest provides a mock function with given fields: _a0, msg
    97  func (_m *MockActorService) SendRequest(_a0 string, msg interface{}) {
    98  	_m.Called(_a0, msg)
    99  }
   100  
   101  // GetChainAccessor implement interface method of ActorService
   102  func (_m *MockActorService) GetChainAccessor() types.ChainAccessor {
   103  	return nil
   104  }
   105  
   106  // TellRequest provides a mock function with given fields: _a0, msg
   107  func (_m *MockActorService) TellRequest(_a0 string, msg interface{}) {
   108  	_m.Called(_a0, msg)
   109  }