Files
cli/internal/mocks/processChecker.go

54 lines
1.3 KiB
Go

// Code generated by mockery v2.26.1. DO NOT EDIT.
package mocks
import (
application "github.com/luxfi/cli/pkg/application"
mock "github.com/stretchr/testify/mock"
)
// ProcessChecker is an autogenerated mock type for the ProcessChecker type
type ProcessChecker struct {
mock.Mock
}
// IsServerProcessRunning provides a mock function with given fields: app
func (_m *ProcessChecker) IsServerProcessRunning(app *application.Lux) (bool, error) {
ret := _m.Called(app)
var r0 bool
var r1 error
if rf, ok := ret.Get(0).(func(*application.Lux) (bool, error)); ok {
return rf(app)
}
if rf, ok := ret.Get(0).(func(*application.Lux) bool); ok {
r0 = rf(app)
} else {
r0 = ret.Get(0).(bool)
}
if rf, ok := ret.Get(1).(func(*application.Lux) error); ok {
r1 = rf(app)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type mockConstructorTestingTNewProcessChecker interface {
mock.TestingT
Cleanup(func())
}
// NewProcessChecker creates a new instance of ProcessChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewProcessChecker(t mockConstructorTestingTNewProcessChecker) *ProcessChecker {
mock := &ProcessChecker{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}