github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/requester.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  // Requester is an autogenerated mock type for the Requester type
    11  type Requester struct {
    12  	mock.Mock
    13  }
    14  
    15  // EntityByID provides a mock function with given fields: entityID, selector
    16  func (_m *Requester) EntityByID(entityID flow.Identifier, selector flow.IdentityFilter[flow.Identity]) {
    17  	_m.Called(entityID, selector)
    18  }
    19  
    20  // Force provides a mock function with given fields:
    21  func (_m *Requester) Force() {
    22  	_m.Called()
    23  }
    24  
    25  // Query provides a mock function with given fields: key, selector
    26  func (_m *Requester) Query(key flow.Identifier, selector flow.IdentityFilter[flow.Identity]) {
    27  	_m.Called(key, selector)
    28  }
    29  
    30  type mockConstructorTestingTNewRequester interface {
    31  	mock.TestingT
    32  	Cleanup(func())
    33  }
    34  
    35  // NewRequester creates a new instance of Requester. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    36  func NewRequester(t mockConstructorTestingTNewRequester) *Requester {
    37  	mock := &Requester{}
    38  	mock.Mock.Test(t)
    39  
    40  	t.Cleanup(func() { mock.AssertExpectations(t) })
    41  
    42  	return mock
    43  }