github.com/0chain/gosdk@v1.17.11/zcnbridge/mocks/Transaction.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  	transaction "github.com/0chain/gosdk/zcnbridge/transaction"
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	zcncore "github.com/0chain/gosdk/zcncore"
    12  )
    13  
    14  // Transaction is an autogenerated mock type for the Transaction type
    15  type Transaction struct {
    16  	mock.Mock
    17  }
    18  
    19  // ExecuteSmartContract provides a mock function with given fields: ctx, address, funcName, input, val
    20  func (_m *Transaction) ExecuteSmartContract(ctx context.Context, address string, funcName string, input interface{}, val uint64) (string, error) {
    21  	ret := _m.Called(ctx, address, funcName, input, val)
    22  
    23  	var r0 string
    24  	var r1 error
    25  	if rf, ok := ret.Get(0).(func(context.Context, string, string, interface{}, uint64) (string, error)); ok {
    26  		return rf(ctx, address, funcName, input, val)
    27  	}
    28  	if rf, ok := ret.Get(0).(func(context.Context, string, string, interface{}, uint64) string); ok {
    29  		r0 = rf(ctx, address, funcName, input, val)
    30  	} else {
    31  		r0 = ret.Get(0).(string)
    32  	}
    33  
    34  	if rf, ok := ret.Get(1).(func(context.Context, string, string, interface{}, uint64) error); ok {
    35  		r1 = rf(ctx, address, funcName, input, val)
    36  	} else {
    37  		r1 = ret.Error(1)
    38  	}
    39  
    40  	return r0, r1
    41  }
    42  
    43  // GetCallback provides a mock function with given fields:
    44  func (_m *Transaction) GetCallback() transaction.TransactionCallbackAwaitable {
    45  	ret := _m.Called()
    46  
    47  	var r0 transaction.TransactionCallbackAwaitable
    48  	if rf, ok := ret.Get(0).(func() transaction.TransactionCallbackAwaitable); ok {
    49  		r0 = rf()
    50  	} else {
    51  		if ret.Get(0) != nil {
    52  			r0 = ret.Get(0).(transaction.TransactionCallbackAwaitable)
    53  		}
    54  	}
    55  
    56  	return r0
    57  }
    58  
    59  // GetHash provides a mock function with given fields:
    60  func (_m *Transaction) GetHash() string {
    61  	ret := _m.Called()
    62  
    63  	var r0 string
    64  	if rf, ok := ret.Get(0).(func() string); ok {
    65  		r0 = rf()
    66  	} else {
    67  		r0 = ret.Get(0).(string)
    68  	}
    69  
    70  	return r0
    71  }
    72  
    73  // GetScheme provides a mock function with given fields:
    74  func (_m *Transaction) GetScheme() zcncore.TransactionScheme {
    75  	ret := _m.Called()
    76  
    77  	var r0 zcncore.TransactionScheme
    78  	if rf, ok := ret.Get(0).(func() zcncore.TransactionScheme); ok {
    79  		r0 = rf()
    80  	} else {
    81  		if ret.Get(0) != nil {
    82  			r0 = ret.Get(0).(zcncore.TransactionScheme)
    83  		}
    84  	}
    85  
    86  	return r0
    87  }
    88  
    89  // GetTransactionOutput provides a mock function with given fields:
    90  func (_m *Transaction) GetTransactionOutput() string {
    91  	ret := _m.Called()
    92  
    93  	var r0 string
    94  	if rf, ok := ret.Get(0).(func() string); ok {
    95  		r0 = rf()
    96  	} else {
    97  		r0 = ret.Get(0).(string)
    98  	}
    99  
   100  	return r0
   101  }
   102  
   103  // SetHash provides a mock function with given fields: _a0
   104  func (_m *Transaction) SetHash(_a0 string) {
   105  	_m.Called(_a0)
   106  }
   107  
   108  // Verify provides a mock function with given fields: ctx
   109  func (_m *Transaction) Verify(ctx context.Context) error {
   110  	ret := _m.Called(ctx)
   111  
   112  	var r0 error
   113  	if rf, ok := ret.Get(0).(func(context.Context) error); ok {
   114  		r0 = rf(ctx)
   115  	} else {
   116  		r0 = ret.Error(0)
   117  	}
   118  
   119  	return r0
   120  }
   121  
   122  type mockConstructorTestingTNewTransaction interface {
   123  	mock.TestingT
   124  	Cleanup(func())
   125  }
   126  
   127  // NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   128  func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction {
   129  	mock := &Transaction{}
   130  	mock.Mock.Test(t)
   131  
   132  	t.Cleanup(func() { mock.AssertExpectations(t) })
   133  
   134  	return mock
   135  }