github.com/aergoio/aergo@v1.3.1/rpc/Context_test.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 package rpc 3 4 import mock "github.com/stretchr/testify/mock" 5 import time "time" 6 7 // Context is an autogenerated mock type for the Context type 8 type Context struct { 9 mock.Mock 10 } 11 12 // Deadline provides a mock function with given fields: 13 func (_m *Context) Deadline() (time.Time, bool) { 14 ret := _m.Called() 15 16 var r0 time.Time 17 if rf, ok := ret.Get(0).(func() time.Time); ok { 18 r0 = rf() 19 } else { 20 r0 = ret.Get(0).(time.Time) 21 } 22 23 var r1 bool 24 if rf, ok := ret.Get(1).(func() bool); ok { 25 r1 = rf() 26 } else { 27 r1 = ret.Get(1).(bool) 28 } 29 30 return r0, r1 31 } 32 33 // Done provides a mock function with given fields: 34 func (_m *Context) Done() <-chan struct{} { 35 ret := _m.Called() 36 37 var r0 <-chan struct{} 38 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 39 r0 = rf() 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(<-chan struct{}) 43 } 44 } 45 46 return r0 47 } 48 49 // Err provides a mock function with given fields: 50 func (_m *Context) Err() error { 51 ret := _m.Called() 52 53 var r0 error 54 if rf, ok := ret.Get(0).(func() error); ok { 55 r0 = rf() 56 } else { 57 r0 = ret.Error(0) 58 } 59 60 return r0 61 } 62 63 // Value provides a mock function with given fields: key 64 func (_m *Context) Value(key interface{}) interface{} { 65 ret := _m.Called(key) 66 67 var r0 interface{} 68 if rf, ok := ret.Get(0).(func(interface{}) interface{}); ok { 69 r0 = rf(key) 70 } else { 71 if ret.Get(0) != nil { 72 r0 = ret.Get(0).(interface{}) 73 } 74 } 75 76 return r0 77 }