github.com/Finschia/ostracon@v1.1.5/proxy/mocks/app_conn_snapshot.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	types "github.com/tendermint/tendermint/abci/types"
     9  )
    10  
    11  // AppConnSnapshot is an autogenerated mock type for the AppConnSnapshot type
    12  type AppConnSnapshot struct {
    13  	mock.Mock
    14  }
    15  
    16  // ApplySnapshotChunkSync provides a mock function with given fields: _a0
    17  func (_m *AppConnSnapshot) ApplySnapshotChunkSync(_a0 types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) {
    18  	ret := _m.Called(_a0)
    19  
    20  	var r0 *types.ResponseApplySnapshotChunk
    21  	var r1 error
    22  	if rf, ok := ret.Get(0).(func(types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error)); ok {
    23  		return rf(_a0)
    24  	}
    25  	if rf, ok := ret.Get(0).(func(types.RequestApplySnapshotChunk) *types.ResponseApplySnapshotChunk); ok {
    26  		r0 = rf(_a0)
    27  	} else {
    28  		if ret.Get(0) != nil {
    29  			r0 = ret.Get(0).(*types.ResponseApplySnapshotChunk)
    30  		}
    31  	}
    32  
    33  	if rf, ok := ret.Get(1).(func(types.RequestApplySnapshotChunk) error); ok {
    34  		r1 = rf(_a0)
    35  	} else {
    36  		r1 = ret.Error(1)
    37  	}
    38  
    39  	return r0, r1
    40  }
    41  
    42  // Error provides a mock function with given fields:
    43  func (_m *AppConnSnapshot) Error() error {
    44  	ret := _m.Called()
    45  
    46  	var r0 error
    47  	if rf, ok := ret.Get(0).(func() error); ok {
    48  		r0 = rf()
    49  	} else {
    50  		r0 = ret.Error(0)
    51  	}
    52  
    53  	return r0
    54  }
    55  
    56  // ListSnapshotsSync provides a mock function with given fields: _a0
    57  func (_m *AppConnSnapshot) ListSnapshotsSync(_a0 types.RequestListSnapshots) (*types.ResponseListSnapshots, error) {
    58  	ret := _m.Called(_a0)
    59  
    60  	var r0 *types.ResponseListSnapshots
    61  	var r1 error
    62  	if rf, ok := ret.Get(0).(func(types.RequestListSnapshots) (*types.ResponseListSnapshots, error)); ok {
    63  		return rf(_a0)
    64  	}
    65  	if rf, ok := ret.Get(0).(func(types.RequestListSnapshots) *types.ResponseListSnapshots); ok {
    66  		r0 = rf(_a0)
    67  	} else {
    68  		if ret.Get(0) != nil {
    69  			r0 = ret.Get(0).(*types.ResponseListSnapshots)
    70  		}
    71  	}
    72  
    73  	if rf, ok := ret.Get(1).(func(types.RequestListSnapshots) error); ok {
    74  		r1 = rf(_a0)
    75  	} else {
    76  		r1 = ret.Error(1)
    77  	}
    78  
    79  	return r0, r1
    80  }
    81  
    82  // LoadSnapshotChunkSync provides a mock function with given fields: _a0
    83  func (_m *AppConnSnapshot) LoadSnapshotChunkSync(_a0 types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) {
    84  	ret := _m.Called(_a0)
    85  
    86  	var r0 *types.ResponseLoadSnapshotChunk
    87  	var r1 error
    88  	if rf, ok := ret.Get(0).(func(types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error)); ok {
    89  		return rf(_a0)
    90  	}
    91  	if rf, ok := ret.Get(0).(func(types.RequestLoadSnapshotChunk) *types.ResponseLoadSnapshotChunk); ok {
    92  		r0 = rf(_a0)
    93  	} else {
    94  		if ret.Get(0) != nil {
    95  			r0 = ret.Get(0).(*types.ResponseLoadSnapshotChunk)
    96  		}
    97  	}
    98  
    99  	if rf, ok := ret.Get(1).(func(types.RequestLoadSnapshotChunk) error); ok {
   100  		r1 = rf(_a0)
   101  	} else {
   102  		r1 = ret.Error(1)
   103  	}
   104  
   105  	return r0, r1
   106  }
   107  
   108  // OfferSnapshotSync provides a mock function with given fields: _a0
   109  func (_m *AppConnSnapshot) OfferSnapshotSync(_a0 types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) {
   110  	ret := _m.Called(_a0)
   111  
   112  	var r0 *types.ResponseOfferSnapshot
   113  	var r1 error
   114  	if rf, ok := ret.Get(0).(func(types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error)); ok {
   115  		return rf(_a0)
   116  	}
   117  	if rf, ok := ret.Get(0).(func(types.RequestOfferSnapshot) *types.ResponseOfferSnapshot); ok {
   118  		r0 = rf(_a0)
   119  	} else {
   120  		if ret.Get(0) != nil {
   121  			r0 = ret.Get(0).(*types.ResponseOfferSnapshot)
   122  		}
   123  	}
   124  
   125  	if rf, ok := ret.Get(1).(func(types.RequestOfferSnapshot) error); ok {
   126  		r1 = rf(_a0)
   127  	} else {
   128  		r1 = ret.Error(1)
   129  	}
   130  
   131  	return r0, r1
   132  }
   133  
   134  // NewAppConnSnapshot creates a new instance of AppConnSnapshot. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   135  // The first argument is typically a *testing.T value.
   136  func NewAppConnSnapshot(t interface {
   137  	mock.TestingT
   138  	Cleanup(func())
   139  }) *AppConnSnapshot {
   140  	mock := &AppConnSnapshot{}
   141  	mock.Mock.Test(t)
   142  
   143  	t.Cleanup(func() { mock.AssertExpectations(t) })
   144  
   145  	return mock
   146  }