Discover Packages
github.com/medium/build
pkg
buildtest
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Oct 30, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Data returns the contents of a file at the given path.
DataAs interprets the YAML contents of the file at the given path as the
given type.
PrettyJSON pretty-prints a struct to a string.
WaitNop is a convenience for passing into WaitUntil.
YAMLToJSON converts the given YAML bytes to JSON bytes.
Wait extends WaitGroup with a few useful methods to avoid tests having a
failure mode of hanging.
NewWait is a convenience for creating a Wait object.
Add should be overridden by implementors.
In calls Done() after the specified duration.
WaitUntil waits until Done() has been called or the specified duration has
elapsed. If Done() is called, then onSuccess is called. If the duration
elapses without Done() being called, then onTimeout is called.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.