Path: blob/main/agent/planexec/budgetmocks_test.go
3436 views
// Code generated by MockGen. DO NOT EDIT.1// Source: github.com/kardolus/chatgpt-cli/agent/core (interfaces: Budget)23// Package planexec_test is a generated GoMock package.4package planexec_test56import (7reflect "reflect"8time "time"910gomock "github.com/golang/mock/gomock"11core "github.com/kardolus/chatgpt-cli/agent/core"12types "github.com/kardolus/chatgpt-cli/agent/types"13)1415// MockBudget is a mock of Budget interface.16type MockBudget struct {17ctrl *gomock.Controller18recorder *MockBudgetMockRecorder19}2021// MockBudgetMockRecorder is the mock recorder for MockBudget.22type MockBudgetMockRecorder struct {23mock *MockBudget24}2526// NewMockBudget creates a new mock instance.27func NewMockBudget(ctrl *gomock.Controller) *MockBudget {28mock := &MockBudget{ctrl: ctrl}29mock.recorder = &MockBudgetMockRecorder{mock}30return mock31}3233// EXPECT returns an object that allows the caller to indicate expected use.34func (m *MockBudget) EXPECT() *MockBudgetMockRecorder {35return m.recorder36}3738// AllowIteration mocks base method.39func (m *MockBudget) AllowIteration(arg0 time.Time) error {40m.ctrl.T.Helper()41ret := m.ctrl.Call(m, "AllowIteration", arg0)42ret0, _ := ret[0].(error)43return ret044}4546// AllowIteration indicates an expected call of AllowIteration.47func (mr *MockBudgetMockRecorder) AllowIteration(arg0 interface{}) *gomock.Call {48mr.mock.ctrl.T.Helper()49return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllowIteration", reflect.TypeOf((*MockBudget)(nil).AllowIteration), arg0)50}5152// AllowStep mocks base method.53func (m *MockBudget) AllowStep(arg0 types.Step, arg1 time.Time) error {54m.ctrl.T.Helper()55ret := m.ctrl.Call(m, "AllowStep", arg0, arg1)56ret0, _ := ret[0].(error)57return ret058}5960// AllowStep indicates an expected call of AllowStep.61func (mr *MockBudgetMockRecorder) AllowStep(arg0, arg1 interface{}) *gomock.Call {62mr.mock.ctrl.T.Helper()63return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllowStep", reflect.TypeOf((*MockBudget)(nil).AllowStep), arg0, arg1)64}6566// AllowTool mocks base method.67func (m *MockBudget) AllowTool(arg0 types.ToolKind, arg1 time.Time) error {68m.ctrl.T.Helper()69ret := m.ctrl.Call(m, "AllowTool", arg0, arg1)70ret0, _ := ret[0].(error)71return ret072}7374// AllowTool indicates an expected call of AllowTool.75func (mr *MockBudgetMockRecorder) AllowTool(arg0, arg1 interface{}) *gomock.Call {76mr.mock.ctrl.T.Helper()77return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllowTool", reflect.TypeOf((*MockBudget)(nil).AllowTool), arg0, arg1)78}7980// ChargeLLMTokens mocks base method.81func (m *MockBudget) ChargeLLMTokens(arg0 int, arg1 time.Time) {82m.ctrl.T.Helper()83m.ctrl.Call(m, "ChargeLLMTokens", arg0, arg1)84}8586// ChargeLLMTokens indicates an expected call of ChargeLLMTokens.87func (mr *MockBudgetMockRecorder) ChargeLLMTokens(arg0, arg1 interface{}) *gomock.Call {88mr.mock.ctrl.T.Helper()89return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChargeLLMTokens", reflect.TypeOf((*MockBudget)(nil).ChargeLLMTokens), arg0, arg1)90}9192// Snapshot mocks base method.93func (m *MockBudget) Snapshot(arg0 time.Time) core.BudgetSnapshot {94m.ctrl.T.Helper()95ret := m.ctrl.Call(m, "Snapshot", arg0)96ret0, _ := ret[0].(core.BudgetSnapshot)97return ret098}99100// Snapshot indicates an expected call of Snapshot.101func (mr *MockBudgetMockRecorder) Snapshot(arg0 interface{}) *gomock.Call {102mr.mock.ctrl.T.Helper()103return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockBudget)(nil).Snapshot), arg0)104}105106// Start mocks base method.107func (m *MockBudget) Start(arg0 time.Time) {108m.ctrl.T.Helper()109m.ctrl.Call(m, "Start", arg0)110}111112// Start indicates an expected call of Start.113func (mr *MockBudgetMockRecorder) Start(arg0 interface{}) *gomock.Call {114mr.mock.ctrl.T.Helper()115return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockBudget)(nil).Start), arg0)116}117118119