github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/light/provider/mocks/provider.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  
    10  	types "github.com/ari-anchor/sei-tendermint/types"
    11  )
    12  
    13  // Provider is an autogenerated mock type for the Provider type
    14  type Provider struct {
    15  	mock.Mock
    16  }
    17  
    18  // ID provides a mock function with given fields:
    19  func (_m *Provider) ID() string {
    20  	ret := _m.Called()
    21  
    22  	var r0 string
    23  	if rf, ok := ret.Get(0).(func() string); ok {
    24  		r0 = rf()
    25  	} else {
    26  		r0 = ret.Get(0).(string)
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // LightBlock provides a mock function with given fields: ctx, height
    33  func (_m *Provider) LightBlock(ctx context.Context, height int64) (*types.LightBlock, error) {
    34  	ret := _m.Called(ctx, height)
    35  
    36  	var r0 *types.LightBlock
    37  	if rf, ok := ret.Get(0).(func(context.Context, int64) *types.LightBlock); ok {
    38  		r0 = rf(ctx, height)
    39  	} else {
    40  		if ret.Get(0) != nil {
    41  			r0 = ret.Get(0).(*types.LightBlock)
    42  		}
    43  	}
    44  
    45  	var r1 error
    46  	if rf, ok := ret.Get(1).(func(context.Context, int64) error); ok {
    47  		r1 = rf(ctx, height)
    48  	} else {
    49  		r1 = ret.Error(1)
    50  	}
    51  
    52  	return r0, r1
    53  }
    54  
    55  // ReportEvidence provides a mock function with given fields: _a0, _a1
    56  func (_m *Provider) ReportEvidence(_a0 context.Context, _a1 types.Evidence) error {
    57  	ret := _m.Called(_a0, _a1)
    58  
    59  	var r0 error
    60  	if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) error); ok {
    61  		r0 = rf(_a0, _a1)
    62  	} else {
    63  		r0 = ret.Error(0)
    64  	}
    65  
    66  	return r0
    67  }
    68  
    69  type mockConstructorTestingTNewProvider interface {
    70  	mock.TestingT
    71  	Cleanup(func())
    72  }
    73  
    74  // NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    75  func NewProvider(t mockConstructorTestingTNewProvider) *Provider {
    76  	mock := &Provider{}
    77  	mock.Mock.Test(t)
    78  
    79  	t.Cleanup(func() { mock.AssertExpectations(t) })
    80  
    81  	return mock
    82  }