Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSTDCapture ¶
CreateSTDCapture creates a new os.File writer that can be used in place of default system values (such as os.Stdout). The content written into the file can then be retrieved using the returned capture function.
Calling the capture function closes the original writer, so make sure you captured everything you need before calling it.
func RequireGRPCCodesEqual ¶
RequireGRPCCodesEqual checks if an error is nil or if it is a gRPC error with the expected code.
If the code is codes.OK, it will instead check if the error is nil.
func RunCMD ¶
RunCMD setups a pattern to run test in controlled environments. https://stackoverflow.com/a/33404435/9021186
IMPORTANT: this must be run only once per test.