Documentation ¶
Index ¶
- type IndividualFuncCall
- type IndividualFuncChmod
- type IndividualFuncChown
- type IndividualFuncLookup
- type IndividualFuncLookupGroup
- type IndividualFuncLstat
- type IndividualFuncReadFile
- type IndividualFuncRemove
- type IndividualFuncRun
- type IndividualFuncWriteFile
- type Test
- func (t Test) Chmod(ctx context.Context, name string, mode os.FileMode) error
- func (t Test) Chown(ctx context.Context, name string, uid, gid int) error
- func (t Test) Lookup(ctx context.Context, username string) (*user.User, error)
- func (t Test) LookupGroup(ctx context.Context, name string) (*user.Group, error)
- func (t Test) Lstat(ctx context.Context, name string) (os.FileInfo, error)
- func (t Test) ReadFile(ctx context.Context, name string) ([]byte, error)
- func (t Test) Remove(ctx context.Context, name string) error
- func (t Test) Run(ctx context.Context, cmd host.Cmd) (host.WaitStatus, string, string, error)
- func (t Test) String() string
- func (t Test) WriteFile(ctx context.Context, name string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndividualFuncCall ¶
type IndividualFuncCall struct { Chmod *IndividualFuncChmod Chown *IndividualFuncChown Lookup *IndividualFuncLookup LookupGroup *IndividualFuncLookupGroup Lstat *IndividualFuncLstat ReadFile *IndividualFuncReadFile Remove *IndividualFuncRemove Run *IndividualFuncRun WriteFile *IndividualFuncWriteFile }
type IndividualFuncChmod ¶
type IndividualFuncChown ¶
type IndividualFuncLookup ¶
type IndividualFuncLstat ¶
type IndividualFuncReadFile ¶
type IndividualFuncRemove ¶
type IndividualFuncRun ¶
type IndividualFuncWriteFile ¶
type Test ¶
type Test struct { T *testing.T ExpectedIndividualFuncCalls []IndividualFuncCall }
Test aids testing by enabling mocking of host functions.
func (Test) LookupGroup ¶
Click to show internal directories.
Click to hide internal directories.