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

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	cluster "github.com/koko1123/flow-go-1/model/cluster"
     7  	flow "github.com/koko1123/flow-go-1/model/flow"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // CollectionMetrics is an autogenerated mock type for the CollectionMetrics type
    13  type CollectionMetrics struct {
    14  	mock.Mock
    15  }
    16  
    17  // ClusterBlockFinalized provides a mock function with given fields: block
    18  func (_m *CollectionMetrics) ClusterBlockFinalized(block *cluster.Block) {
    19  	_m.Called(block)
    20  }
    21  
    22  // ClusterBlockProposed provides a mock function with given fields: block
    23  func (_m *CollectionMetrics) ClusterBlockProposed(block *cluster.Block) {
    24  	_m.Called(block)
    25  }
    26  
    27  // TransactionIngested provides a mock function with given fields: txID
    28  func (_m *CollectionMetrics) TransactionIngested(txID flow.Identifier) {
    29  	_m.Called(txID)
    30  }
    31  
    32  type mockConstructorTestingTNewCollectionMetrics interface {
    33  	mock.TestingT
    34  	Cleanup(func())
    35  }
    36  
    37  // NewCollectionMetrics creates a new instance of CollectionMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    38  func NewCollectionMetrics(t mockConstructorTestingTNewCollectionMetrics) *CollectionMetrics {
    39  	mock := &CollectionMetrics{}
    40  	mock.Mock.Test(t)
    41  
    42  	t.Cleanup(func() { mock.AssertExpectations(t) })
    43  
    44  	return mock
    45  }