github.com/yandex/pandora@v0.5.32/core/mocks/aggregator.go (about)

     1  // Code generated by mockery v2.20.2. DO NOT EDIT.
     2  
     3  package coremock
     4  
     5  import (
     6  	context "context"
     7  
     8  	core "github.com/yandex/pandora/core"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // Aggregator is an autogenerated mock type for the Aggregator type
    13  type Aggregator struct {
    14  	mock.Mock
    15  }
    16  
    17  // Report provides a mock function with given fields: s
    18  func (_m *Aggregator) Report(s core.Sample) {
    19  	_m.Called(s)
    20  }
    21  
    22  // Run provides a mock function with given fields: ctx, deps
    23  func (_m *Aggregator) Run(ctx context.Context, deps core.AggregatorDeps) error {
    24  	ret := _m.Called(ctx, deps)
    25  
    26  	var r0 error
    27  	if rf, ok := ret.Get(0).(func(context.Context, core.AggregatorDeps) error); ok {
    28  		r0 = rf(ctx, deps)
    29  	} else {
    30  		r0 = ret.Error(0)
    31  	}
    32  
    33  	return r0
    34  }
    35  
    36  type mockConstructorTestingTNewAggregator interface {
    37  	mock.TestingT
    38  	Cleanup(func())
    39  }
    40  
    41  // NewAggregator creates a new instance of Aggregator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    42  func NewAggregator(t mockConstructorTestingTNewAggregator) *Aggregator {
    43  	mock := &Aggregator{}
    44  	mock.Mock.Test(t)
    45  
    46  	t.Cleanup(func() { mock.AssertExpectations(t) })
    47  
    48  	return mock
    49  }