Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSDecorator ¶
type OSDecorator interface { // GetArgs Argument - returns command line arguments without application name GetArgs() []string // Create creates or truncates the named file Create(path string) (fld.FileDecorator, error) // Exit causes the current program to exit with the given error Exit(code ExitCode, err error) // IsExist checks if path is existence IsExist(path string) error // MkdirAll creates directory named path MkdirAll(path string, perm os.FileMode) error // ReadFile loads file ReadFile(path string) ([]byte, error) }
OSDecorator - os methods decorator interface
type OSDecoratorMockOpt ¶
type OSDecoratorMockOpt struct { FuncGetArgs func() []string FuncCreate func(path string) (fld.FileDecorator, error) FuncExit func(code ExitCode, err error) FuncIsExist func(path string) error FuncMkdirAll func(path string, perm os.FileMode) error FuncReadFile func(path string) ([]byte, error) }
OSDecoratorMockOpt contains mock methods of initialize mocked decorator object
Click to show internal directories.
Click to hide internal directories.