github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/handlers/validation/builtin/v13/mocks/state_fetcher.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  import validation "github.com/hechain20/hechain/core/handlers/validation/api/state"
     8  
     9  // StateFetcher is an autogenerated mock type for the StateFetcher type
    10  type StateFetcher struct {
    11  	mock.Mock
    12  }
    13  
    14  // FetchState provides a mock function with given fields:
    15  func (_m *StateFetcher) FetchState() (validation.State, error) {
    16  	ret := _m.Called()
    17  
    18  	var r0 validation.State
    19  	if rf, ok := ret.Get(0).(func() validation.State); ok {
    20  		r0 = rf()
    21  	} else {
    22  		if ret.Get(0) != nil {
    23  			r0 = ret.Get(0).(validation.State)
    24  		}
    25  	}
    26  
    27  	var r1 error
    28  	if rf, ok := ret.Get(1).(func() error); ok {
    29  		r1 = rf()
    30  	} else {
    31  		r1 = ret.Error(1)
    32  	}
    33  
    34  	return r0, r1
    35  }