github.com/koko1123/flow-go-1@v0.29.6/storage/mock/seals.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	flow "github.com/koko1123/flow-go-1/model/flow"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // Seals is an autogenerated mock type for the Seals type
    11  type Seals struct {
    12  	mock.Mock
    13  }
    14  
    15  // ByID provides a mock function with given fields: sealID
    16  func (_m *Seals) ByID(sealID flow.Identifier) (*flow.Seal, error) {
    17  	ret := _m.Called(sealID)
    18  
    19  	var r0 *flow.Seal
    20  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.Seal); ok {
    21  		r0 = rf(sealID)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(*flow.Seal)
    25  		}
    26  	}
    27  
    28  	var r1 error
    29  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    30  		r1 = rf(sealID)
    31  	} else {
    32  		r1 = ret.Error(1)
    33  	}
    34  
    35  	return r0, r1
    36  }
    37  
    38  // FinalizedSealForBlock provides a mock function with given fields: blockID
    39  func (_m *Seals) FinalizedSealForBlock(blockID flow.Identifier) (*flow.Seal, error) {
    40  	ret := _m.Called(blockID)
    41  
    42  	var r0 *flow.Seal
    43  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.Seal); ok {
    44  		r0 = rf(blockID)
    45  	} else {
    46  		if ret.Get(0) != nil {
    47  			r0 = ret.Get(0).(*flow.Seal)
    48  		}
    49  	}
    50  
    51  	var r1 error
    52  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    53  		r1 = rf(blockID)
    54  	} else {
    55  		r1 = ret.Error(1)
    56  	}
    57  
    58  	return r0, r1
    59  }
    60  
    61  // HighestInFork provides a mock function with given fields: blockID
    62  func (_m *Seals) HighestInFork(blockID flow.Identifier) (*flow.Seal, error) {
    63  	ret := _m.Called(blockID)
    64  
    65  	var r0 *flow.Seal
    66  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.Seal); ok {
    67  		r0 = rf(blockID)
    68  	} else {
    69  		if ret.Get(0) != nil {
    70  			r0 = ret.Get(0).(*flow.Seal)
    71  		}
    72  	}
    73  
    74  	var r1 error
    75  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    76  		r1 = rf(blockID)
    77  	} else {
    78  		r1 = ret.Error(1)
    79  	}
    80  
    81  	return r0, r1
    82  }
    83  
    84  // Store provides a mock function with given fields: seal
    85  func (_m *Seals) Store(seal *flow.Seal) error {
    86  	ret := _m.Called(seal)
    87  
    88  	var r0 error
    89  	if rf, ok := ret.Get(0).(func(*flow.Seal) error); ok {
    90  		r0 = rf(seal)
    91  	} else {
    92  		r0 = ret.Error(0)
    93  	}
    94  
    95  	return r0
    96  }
    97  
    98  type mockConstructorTestingTNewSeals interface {
    99  	mock.TestingT
   100  	Cleanup(func())
   101  }
   102  
   103  // NewSeals creates a new instance of Seals. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   104  func NewSeals(t mockConstructorTestingTNewSeals) *Seals {
   105  	mock := &Seals{}
   106  	mock.Mock.Test(t)
   107  
   108  	t.Cleanup(func() { mock.AssertExpectations(t) })
   109  
   110  	return mock
   111  }