github.com/0chain/gosdk@v1.17.11/zcnbridge/transaction/mocks/TransactionCallbackAwaitable.go (about) 1 // Code generated by mockery v2.28.1. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 context "context" 7 8 mock "github.com/stretchr/testify/mock" 9 10 zcncore "github.com/0chain/gosdk/zcncore" 11 ) 12 13 // TransactionCallbackAwaitable is an autogenerated mock type for the TransactionCallbackAwaitable type 14 type TransactionCallbackAwaitable struct { 15 mock.Mock 16 } 17 18 // OnAuthComplete provides a mock function with given fields: t, status 19 func (_m *TransactionCallbackAwaitable) OnAuthComplete(t *zcncore.Transaction, status int) { 20 _m.Called(t, status) 21 } 22 23 // OnTransactionComplete provides a mock function with given fields: t, status 24 func (_m *TransactionCallbackAwaitable) OnTransactionComplete(t *zcncore.Transaction, status int) { 25 _m.Called(t, status) 26 } 27 28 // OnVerifyComplete provides a mock function with given fields: t, status 29 func (_m *TransactionCallbackAwaitable) OnVerifyComplete(t *zcncore.Transaction, status int) { 30 _m.Called(t, status) 31 } 32 33 // WaitCompleteCall provides a mock function with given fields: ctx 34 func (_m *TransactionCallbackAwaitable) WaitCompleteCall(ctx context.Context) error { 35 ret := _m.Called(ctx) 36 37 var r0 error 38 if rf, ok := ret.Get(0).(func(context.Context) error); ok { 39 r0 = rf(ctx) 40 } else { 41 r0 = ret.Error(0) 42 } 43 44 return r0 45 } 46 47 // WaitVerifyCall provides a mock function with given fields: ctx 48 func (_m *TransactionCallbackAwaitable) WaitVerifyCall(ctx context.Context) error { 49 ret := _m.Called(ctx) 50 51 var r0 error 52 if rf, ok := ret.Get(0).(func(context.Context) error); ok { 53 r0 = rf(ctx) 54 } else { 55 r0 = ret.Error(0) 56 } 57 58 return r0 59 } 60 61 type mockConstructorTestingTNewTransactionCallbackAwaitable interface { 62 mock.TestingT 63 Cleanup(func()) 64 } 65 66 // NewTransactionCallbackAwaitable creates a new instance of TransactionCallbackAwaitable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 67 func NewTransactionCallbackAwaitable(t mockConstructorTestingTNewTransactionCallbackAwaitable) *TransactionCallbackAwaitable { 68 mock := &TransactionCallbackAwaitable{} 69 mock.Mock.Test(t) 70 71 t.Cleanup(func() { mock.AssertExpectations(t) }) 72 73 return mock 74 }