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

     1  // Code generated by mockery v2.22.1. DO NOT EDIT.
     2  
     3  package netsample
     4  
     5  import (
     6  	context "context"
     7  
     8  	core "github.com/yandex/pandora/core"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // MockAggregator is an autogenerated mock type for the Aggregator type
    13  type MockAggregator struct {
    14  	mock.Mock
    15  }
    16  
    17  // Report provides a mock function with given fields: sample
    18  func (_m *MockAggregator) Report(sample *Sample) {
    19  	_m.Called(sample)
    20  }
    21  
    22  // Run provides a mock function with given fields: ctx, deps
    23  func (_m *MockAggregator) 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 mockConstructorTestingTNewMockAggregator interface {
    37  	mock.TestingT
    38  	Cleanup(func())
    39  }
    40  
    41  // NewMockAggregator creates a new instance of MockAggregator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    42  func NewMockAggregator(t mockConstructorTestingTNewMockAggregator) *MockAggregator {
    43  	mock := &MockAggregator{}
    44  	mock.Mock.Test(t)
    45  
    46  	t.Cleanup(func() { mock.AssertExpectations(t) })
    47  
    48  	return mock
    49  }