github.com/0chain/gosdk@v1.17.11/zcnbridge/mocks/JobResult.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  // JobResult is an autogenerated mock type for the JobResult type
     8  type JobResult struct {
     9  	mock.Mock
    10  }
    11  
    12  // Data provides a mock function with given fields:
    13  func (_m *JobResult) Data() interface{} {
    14  	ret := _m.Called()
    15  
    16  	var r0 interface{}
    17  	if rf, ok := ret.Get(0).(func() interface{}); ok {
    18  		r0 = rf()
    19  	} else {
    20  		if ret.Get(0) != nil {
    21  			r0 = ret.Get(0).(interface{})
    22  		}
    23  	}
    24  
    25  	return r0
    26  }
    27  
    28  // Error provides a mock function with given fields:
    29  func (_m *JobResult) Error() error {
    30  	ret := _m.Called()
    31  
    32  	var r0 error
    33  	if rf, ok := ret.Get(0).(func() error); ok {
    34  		r0 = rf()
    35  	} else {
    36  		r0 = ret.Error(0)
    37  	}
    38  
    39  	return r0
    40  }
    41  
    42  // GetAuthorizerID provides a mock function with given fields:
    43  func (_m *JobResult) GetAuthorizerID() string {
    44  	ret := _m.Called()
    45  
    46  	var r0 string
    47  	if rf, ok := ret.Get(0).(func() string); ok {
    48  		r0 = rf()
    49  	} else {
    50  		r0 = ret.Get(0).(string)
    51  	}
    52  
    53  	return r0
    54  }
    55  
    56  // SetAuthorizerID provides a mock function with given fields: ID
    57  func (_m *JobResult) SetAuthorizerID(ID string) {
    58  	_m.Called(ID)
    59  }
    60  
    61  type mockConstructorTestingTNewJobResult interface {
    62  	mock.TestingT
    63  	Cleanup(func())
    64  }
    65  
    66  // NewJobResult creates a new instance of JobResult. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    67  func NewJobResult(t mockConstructorTestingTNewJobResult) *JobResult {
    68  	mock := &JobResult{}
    69  	mock.Mock.Test(t)
    70  
    71  	t.Cleanup(func() { mock.AssertExpectations(t) })
    72  
    73  	return mock
    74  }