Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateGoldenFile = flag.Bool("update", false, "Updates the golden files with expected response.")
UpdateGoldenFile sets the flag if updates golden files with expected response.
Functions ¶
func CompareGoldenFile ¶
CompareGoldenFile compares or updates golden file contents with given bytes. For JSON content it will assert object equality if the string check fails
func DiffStrings ¶
DiffStrings output detailed diff between two strings.
Types ¶
type SortMetricsByNameAndTags ¶
type SortMetricsByNameAndTags []*m3.Metric
SortMetricsByNameAndTags ...
func (SortMetricsByNameAndTags) Less ¶
func (a SortMetricsByNameAndTags) Less(i, j int) bool
Less ...
type WaitAtLeast ¶
type WaitAtLeast struct {
// contains filtered or unexported fields
}
WaitAtLeast wait group signals the wait channel when at least the added count are done. This avoids sync.WaitGroup panic when count is negative.
Usage:
wg := WaitAtLeast{} wg.Add(1) wg.Wait() go func() { wg.Done() }()
Click to show internal directories.
Click to hide internal directories.