github.com/0chain/gosdk@v1.17.11/zcncore/mocks/TransactionCallback.go (about) 1 // Code generated by mockery v2.28.1. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 zcncore "github.com/0chain/gosdk/zcncore" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // TransactionCallback is an autogenerated mock type for the TransactionCallback type 11 type TransactionCallback struct { 12 mock.Mock 13 } 14 15 // OnAuthComplete provides a mock function with given fields: t, status 16 func (_m *TransactionCallback) OnAuthComplete(t *zcncore.Transaction, status int) { 17 _m.Called(t, status) 18 } 19 20 // OnTransactionComplete provides a mock function with given fields: t, status 21 func (_m *TransactionCallback) OnTransactionComplete(t *zcncore.Transaction, status int) { 22 _m.Called(t, status) 23 } 24 25 // OnVerifyComplete provides a mock function with given fields: t, status 26 func (_m *TransactionCallback) OnVerifyComplete(t *zcncore.Transaction, status int) { 27 _m.Called(t, status) 28 } 29 30 type mockConstructorTestingTNewTransactionCallback interface { 31 mock.TestingT 32 Cleanup(func()) 33 } 34 35 // NewTransactionCallback creates a new instance of TransactionCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 36 func NewTransactionCallback(t mockConstructorTestingTNewTransactionCallback) *TransactionCallback { 37 mock := &TransactionCallback{} 38 mock.Mock.Test(t) 39 40 t.Cleanup(func() { mock.AssertExpectations(t) }) 41 42 return mock 43 }