github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/seals.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	flow "github.com/onflow/flow-go/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  	var r1 error
    21  	if rf, ok := ret.Get(0).(func(flow.Identifier) (*flow.Seal, error)); ok {
    22  		return rf(sealID)
    23  	}
    24  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.Seal); ok {
    25  		r0 = rf(sealID)
    26  	} else {
    27  		if ret.Get(0) != nil {
    28  			r0 = ret.Get(0).(*flow.Seal)
    29  		}
    30  	}
    31  
    32  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    33  		r1 = rf(sealID)
    34  	} else {
    35  		r1 = ret.Error(1)
    36  	}
    37  
    38  	return r0, r1
    39  }
    40  
    41  // FinalizedSealForBlock provides a mock function with given fields: blockID
    42  func (_m *Seals) FinalizedSealForBlock(blockID flow.Identifier) (*flow.Seal, error) {
    43  	ret := _m.Called(blockID)
    44  
    45  	var r0 *flow.Seal
    46  	var r1 error
    47  	if rf, ok := ret.Get(0).(func(flow.Identifier) (*flow.Seal, error)); ok {
    48  		return rf(blockID)
    49  	}
    50  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.Seal); ok {
    51  		r0 = rf(blockID)
    52  	} else {
    53  		if ret.Get(0) != nil {
    54  			r0 = ret.Get(0).(*flow.Seal)
    55  		}
    56  	}
    57  
    58  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    59  		r1 = rf(blockID)
    60  	} else {
    61  		r1 = ret.Error(1)
    62  	}
    63  
    64  	return r0, r1
    65  }
    66  
    67  // HighestInFork provides a mock function with given fields: blockID
    68  func (_m *Seals) HighestInFork(blockID flow.Identifier) (*flow.Seal, error) {
    69  	ret := _m.Called(blockID)
    70  
    71  	var r0 *flow.Seal
    72  	var r1 error
    73  	if rf, ok := ret.Get(0).(func(flow.Identifier) (*flow.Seal, error)); ok {
    74  		return rf(blockID)
    75  	}
    76  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.Seal); ok {
    77  		r0 = rf(blockID)
    78  	} else {
    79  		if ret.Get(0) != nil {
    80  			r0 = ret.Get(0).(*flow.Seal)
    81  		}
    82  	}
    83  
    84  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    85  		r1 = rf(blockID)
    86  	} else {
    87  		r1 = ret.Error(1)
    88  	}
    89  
    90  	return r0, r1
    91  }
    92  
    93  // Store provides a mock function with given fields: seal
    94  func (_m *Seals) Store(seal *flow.Seal) error {
    95  	ret := _m.Called(seal)
    96  
    97  	var r0 error
    98  	if rf, ok := ret.Get(0).(func(*flow.Seal) error); ok {
    99  		r0 = rf(seal)
   100  	} else {
   101  		r0 = ret.Error(0)
   102  	}
   103  
   104  	return r0
   105  }
   106  
   107  type mockConstructorTestingTNewSeals interface {
   108  	mock.TestingT
   109  	Cleanup(func())
   110  }
   111  
   112  // 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.
   113  func NewSeals(t mockConstructorTestingTNewSeals) *Seals {
   114  	mock := &Seals{}
   115  	mock.Mock.Test(t)
   116  
   117  	t.Cleanup(func() { mock.AssertExpectations(t) })
   118  
   119  	return mock
   120  }