inspect

package
v1.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPythonInspector

type MockPythonInspector struct {
	mock.Mock
}

func NewMockPythonInspector

func NewMockPythonInspector() *MockPythonInspector

func (*MockPythonInspector) GetPythonInterpreter added in v1.10.0

func (m *MockPythonInspector) GetPythonInterpreter() interpreters.PythonInterpreter

func (*MockPythonInspector) InspectPython

func (m *MockPythonInspector) InspectPython() (*config.Python, error)

func (*MockPythonInspector) RequiresPython added in v1.10.0

func (m *MockPythonInspector) RequiresPython(cfg *config.Config) (bool, error)

func (*MockPythonInspector) ScanRequirements

func (m *MockPythonInspector) ScanRequirements(base util.AbsolutePath) ([]string, []string, string, error)

type MockRInspector

type MockRInspector struct {
	mock.Mock
}

func NewMockRInspector

func NewMockRInspector() *MockRInspector

func (*MockRInspector) InspectR

func (m *MockRInspector) InspectR() (*config.R, error)

func (*MockRInspector) RequiresR added in v1.8.0

func (m *MockRInspector) RequiresR(*config.Config) (bool, error)

type PythonInspector

type PythonInspector interface {
	InspectPython() (*config.Python, error)
	RequiresPython(*config.Config) (bool, error)
	ScanRequirements(base util.AbsolutePath) ([]string, []string, string, error)
	GetPythonInterpreter() interpreters.PythonInterpreter
}

func NewPythonInspector

func NewPythonInspector(base util.AbsolutePath, pythonExecutable util.Path, log logging.Logger, pythonInterpreterFactoryOverride interpreters.PythonInterpreterFactory, cmdExecutorOverride executor.Executor) (PythonInspector, error)

type PythonInspectorFactory added in v1.8.0

type PythonInspectorFactory func(base util.AbsolutePath, pythonPath util.Path, log logging.Logger, pythonInterpreterFactoryOverride interpreters.PythonInterpreterFactory, cmdExecutorOverride executor.Executor) (PythonInspector, error)

type RInspector

type RInspector interface {
	InspectR() (*config.R, error)
	RequiresR(*config.Config) (bool, error)
}

func NewRInspector

func NewRInspector(base util.AbsolutePath, rExecutable util.Path, log logging.Logger, rInterpreterFactoryOverride interpreters.RInterpreterFactory, cmdExecutorOverride executor.Executor) (RInspector, error)

type RInspectorFactory added in v1.8.0

type RInspectorFactory func(base util.AbsolutePath, rExecutable util.Path, log logging.Logger, rInterpreterFactory interpreters.RInterpreterFactory, cmdExecutorOverride executor.Executor) (RInspector, error)

Directories

Path Synopsis
dependencies

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL