Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockBadWD ¶ added in v1.1.0
func MockBadWD() (err error)
MockBadWD is intended to be used during unit testing and not something generally useful. MockBadWD changes to a new temp directory and then deletes the directory. This leaves the running code in a case where calling os.Getwd will throw and error, which in turn causes filepath.Abs to throw an error
Call UnMockBadWD to restore the working directory to the location the runtime was at when MockBadWD was called
func Pop ¶
func Pop() (err error)
Pop removes the last working directory from the stack and changes directory to it
func Push ¶
Push notes the current working directory and changes directory to the given path, use Pop to return to the previous working directory
func UnMockBadWD ¶ added in v1.1.0
func UnMockBadWD() (err error)
UnMockBadWD restores the runtime to the original working directory when MockBadWD was called
Types ¶
This section is empty.