github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/aggregator/mocks/mock_profitabilitychecker.go (about)

     1  // Code generated by mockery v2.22.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  	big "math/big"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // ProfitabilityCheckerMock is an autogenerated mock type for the aggregatorTxProfitabilityChecker type
    13  type ProfitabilityCheckerMock struct {
    14  	mock.Mock
    15  }
    16  
    17  // IsProfitable provides a mock function with given fields: _a0, _a1
    18  func (_m *ProfitabilityCheckerMock) IsProfitable(_a0 context.Context, _a1 *big.Int) (bool, error) {
    19  	ret := _m.Called(_a0, _a1)
    20  
    21  	var r0 bool
    22  	var r1 error
    23  	if rf, ok := ret.Get(0).(func(context.Context, *big.Int) (bool, error)); ok {
    24  		return rf(_a0, _a1)
    25  	}
    26  	if rf, ok := ret.Get(0).(func(context.Context, *big.Int) bool); ok {
    27  		r0 = rf(_a0, _a1)
    28  	} else {
    29  		r0 = ret.Get(0).(bool)
    30  	}
    31  
    32  	if rf, ok := ret.Get(1).(func(context.Context, *big.Int) error); ok {
    33  		r1 = rf(_a0, _a1)
    34  	} else {
    35  		r1 = ret.Error(1)
    36  	}
    37  
    38  	return r0, r1
    39  }
    40  
    41  type mockConstructorTestingTNewProfitabilityCheckerMock interface {
    42  	mock.TestingT
    43  	Cleanup(func())
    44  }
    45  
    46  // NewProfitabilityCheckerMock creates a new instance of ProfitabilityCheckerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    47  func NewProfitabilityCheckerMock(t mockConstructorTestingTNewProfitabilityCheckerMock) *ProfitabilityCheckerMock {
    48  	mock := &ProfitabilityCheckerMock{}
    49  	mock.Mock.Test(t)
    50  
    51  	t.Cleanup(func() { mock.AssertExpectations(t) })
    52  
    53  	return mock
    54  }