Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestEnv ¶
type TestEnv struct {
Env *azldev.Env
Config *projectconfig.ProjectConfig
TestInterfaces azldev.SystemInterfaces
// Test implementations
CmdFactory *testctx.TestCmdFactory
DryRunnable opctx.DryRunnable
EventListener opctx.EventListener
TestFS opctx.FS
TestOSEnv opctx.OSEnv
CommandsExecuted [][]string
}
Test environment, useful for unit-testing azldev CLI commands. Contains an azldev.Env constructed with injected dependencies that redirect filesystem and OS environmental access to included test objects.
func (*TestEnv) FS ¶
FS implements the opctx.FileSystemFactory interface.
Click to show internal directories.
Click to hide internal directories.