modulepackage
0.0.0-20200202191622-63f1cf65ac4c
Repository: https://github.com/facebookgo/ensure.git
Documentation: pkg.go.dev
# README
ensure 
Documentation: https://godoc.org/github.com/facebookgo/ensure
# Functions
DeepEqual ensures actual and expected are equal.
DisorderedSubset attempts to find all the given subsets in the list of actuals.
Err ensures the error satisfies the given regular expression.
False ensures v is false.
Nil ensures v is nil.
NotDeepEqual ensures actual and expected are not equal.
NotNil ensures v is not nil.
PanicDeepEqual ensures a panic occurs and the recovered value is DeepEqual to the expected value.
SameElements ensures the two given slices contain the same elements, ignoring the order.
StringContains ensures string s contains the string substr.
StringDoesNotContain ensures string s does not contain the string substr.
Subset ensures actual matches subset.
True ensures v is true.
# Interfaces
Fataler defines the minimal interface necessary to trigger a Fatal when a condition is hit.