inspect

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRenvLockfile = "renv.lock"
View Source
const PythonRequirementsFilename = "requirements.txt"

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) InspectPython

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

func (*MockPythonInspector) ReadRequirementsFile

func (m *MockPythonInspector) ReadRequirementsFile(path util.AbsolutePath) ([]string, error)

func (*MockPythonInspector) ScanRequirements

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

func (*MockPythonInspector) WriteRequirementsFile

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

type MockRInspector

type MockRInspector struct {
	mock.Mock
}

func NewMockRInspector

func NewMockRInspector() *MockRInspector

func (*MockRInspector) CreateLockfile

func (m *MockRInspector) CreateLockfile(lockfilePath util.AbsolutePath) error

func (*MockRInspector) InspectR

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

type PythonInspector

type PythonInspector interface {
	InspectPython() (*config.Python, error)
	ReadRequirementsFile(path util.AbsolutePath) ([]string, error)
	WriteRequirementsFile(dest util.AbsolutePath, reqs []string) error
	ScanRequirements(base util.AbsolutePath) ([]string, []string, string, error)
}

func NewPythonInspector

func NewPythonInspector(base util.AbsolutePath, pythonPath util.Path, log logging.Logger) PythonInspector

type RInspector

type RInspector interface {
	InspectR() (*config.R, error)
	CreateLockfile(lockfilePath util.AbsolutePath) error
}

func NewRInspector

func NewRInspector(base util.AbsolutePath, rExecutable util.Path, log logging.Logger) RInspector

Directories

Path Synopsis
dependencies

Jump to

Keyboard shortcuts

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