github.com/0chain/gosdk@v1.17.11/zcncore/mocks/GetNonceCallback.go (about)

     1  // Code generated by mockery v2.28.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // GetNonceCallback is an autogenerated mock type for the GetNonceCallback type
     8  type GetNonceCallback struct {
     9  	mock.Mock
    10  }
    11  
    12  // OnNonceAvailable provides a mock function with given fields: status, nonce, info
    13  func (_m *GetNonceCallback) OnNonceAvailable(status int, nonce int64, info string) {
    14  	_m.Called(status, nonce, info)
    15  }
    16  
    17  type mockConstructorTestingTNewGetNonceCallback interface {
    18  	mock.TestingT
    19  	Cleanup(func())
    20  }
    21  
    22  // NewGetNonceCallback creates a new instance of GetNonceCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    23  func NewGetNonceCallback(t mockConstructorTestingTNewGetNonceCallback) *GetNonceCallback {
    24  	mock := &GetNonceCallback{}
    25  	mock.Mock.Test(t)
    26  
    27  	t.Cleanup(func() { mock.AssertExpectations(t) })
    28  
    29  	return mock
    30  }