github.com/DFWallet/tendermint-cosmos@v0.0.2/light/rpc/mocks/light_client.go (about)

     1  // Code generated by mockery v0.0.0-dev. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  
    10  	time "time"
    11  
    12  	types "github.com/DFWallet/tendermint-cosmos/types"
    13  )
    14  
    15  // LightClient is an autogenerated mock type for the LightClient type
    16  type LightClient struct {
    17  	mock.Mock
    18  }
    19  
    20  // ChainID provides a mock function with given fields:
    21  func (_m *LightClient) ChainID() string {
    22  	ret := _m.Called()
    23  
    24  	var r0 string
    25  	if rf, ok := ret.Get(0).(func() string); ok {
    26  		r0 = rf()
    27  	} else {
    28  		r0 = ret.Get(0).(string)
    29  	}
    30  
    31  	return r0
    32  }
    33  
    34  // TrustedLightBlock provides a mock function with given fields: height
    35  func (_m *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error) {
    36  	ret := _m.Called(height)
    37  
    38  	var r0 *types.LightBlock
    39  	if rf, ok := ret.Get(0).(func(int64) *types.LightBlock); ok {
    40  		r0 = rf(height)
    41  	} else {
    42  		if ret.Get(0) != nil {
    43  			r0 = ret.Get(0).(*types.LightBlock)
    44  		}
    45  	}
    46  
    47  	var r1 error
    48  	if rf, ok := ret.Get(1).(func(int64) error); ok {
    49  		r1 = rf(height)
    50  	} else {
    51  		r1 = ret.Error(1)
    52  	}
    53  
    54  	return r0, r1
    55  }
    56  
    57  // Update provides a mock function with given fields: ctx, now
    58  func (_m *LightClient) Update(ctx context.Context, now time.Time) (*types.LightBlock, error) {
    59  	ret := _m.Called(ctx, now)
    60  
    61  	var r0 *types.LightBlock
    62  	if rf, ok := ret.Get(0).(func(context.Context, time.Time) *types.LightBlock); ok {
    63  		r0 = rf(ctx, now)
    64  	} else {
    65  		if ret.Get(0) != nil {
    66  			r0 = ret.Get(0).(*types.LightBlock)
    67  		}
    68  	}
    69  
    70  	var r1 error
    71  	if rf, ok := ret.Get(1).(func(context.Context, time.Time) error); ok {
    72  		r1 = rf(ctx, now)
    73  	} else {
    74  		r1 = ret.Error(1)
    75  	}
    76  
    77  	return r0, r1
    78  }
    79  
    80  // VerifyLightBlockAtHeight provides a mock function with given fields: ctx, height, now
    81  func (_m *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error) {
    82  	ret := _m.Called(ctx, height, now)
    83  
    84  	var r0 *types.LightBlock
    85  	if rf, ok := ret.Get(0).(func(context.Context, int64, time.Time) *types.LightBlock); ok {
    86  		r0 = rf(ctx, height, now)
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(*types.LightBlock)
    90  		}
    91  	}
    92  
    93  	var r1 error
    94  	if rf, ok := ret.Get(1).(func(context.Context, int64, time.Time) error); ok {
    95  		r1 = rf(ctx, height, now)
    96  	} else {
    97  		r1 = ret.Error(1)
    98  	}
    99  
   100  	return r0, r1
   101  }