mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDevContainerRunner

type MockDevContainerRunner struct {
	RunFunc  func(projectPath string, config devcontainer.Config) (string, error)
	StopFunc func(containerId string) error
	ExecFunc func(containerId string, command []string) (devcontainer.ExecResult, error)
}

MockDevContainerRunner is a mock of the devcontainer.Runner interface for testing

func (*MockDevContainerRunner) Exec

func (m *MockDevContainerRunner) Exec(containerId string, command []string) (devcontainer.ExecResult, error)

func (*MockDevContainerRunner) Run

func (m *MockDevContainerRunner) Run(projectPath string, config devcontainer.Config) (string, error)

func (*MockDevContainerRunner) Stop

func (m *MockDevContainerRunner) Stop(containerId string) error

Jump to

Keyboard shortcuts

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