{"modulePath":"github.com/expr-lang/expr","version":"v1.18.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package require\n\nPackage require implements the same assertions as the \\`assert\\` package but stops test execution when a test fails.\n\n### Example Usage {#hdr-Example_Usage}\n\nThe following is a complete example using require in a standard test function:\n\n\timport (\n\t  \"testing\"\n\t  \"github.com/expr-lang/expr/internal/testify/require\"\n\t)\n\n\tfunc TestSomething(t *testing.T) {\n\n\t  var a string = \"Hello\"\n\t  var b string = \"Hello\"\n\n\t  require.Equal(t, a, b, \"The two words should be the same.\")\n\n\t}\n\n### Assertions {#hdr-Assertions}\n\nThe \\`require\\` package have same global functions as in the \\`assert\\` package, but instead of returning a boolean result they call \\`t.FailNow()\\`.\n\nEvery assertion function also takes an optional string message as the final argument, allowing custom error messages to be appended to the message the assertion method outputs.\n\n## Functions\n\n```go\nfunc Condition(t TestingT, comp assert.Comparison, msgAndArgs ...interface{})\n```\nCondition uses a Comparison to assert a complex condition.\n\n```go\nfunc Conditionf(t TestingT, comp assert.Comparison, msg string, args ...interface{})\n```\nConditionf uses a Comparison to assert a complex condition.\n\n```go\nfunc Contains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})\n```\nContains asserts that the specified string, list(array, slice...) or map contains the specified substring or element.\n\n\tassert.Contains(t, \"Hello World\", \"World\")\n\tassert.Contains(t, [\"Hello\", \"World\"], \"World\")\n\tassert.Contains(t, {\"Hello\": \"World\"}, \"Hello\")\n\n```go\nfunc Containsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{})\n```\nContainsf asserts that the specified string, list(array, slice...) or map contains the specified substring or element.\n\n\tassert.Containsf(t, \"Hello World\", \"World\", \"error message %s\", \"formatted\")\n\tassert.Containsf(t, [\"Hello\", \"World\"], \"World\", \"error message %s\", \"formatted\")\n\tassert.Containsf(t, {\"Hello\": \"World\"}, \"Hello\", \"error message %s\", \"formatted\")\n\n```go\nfunc DirExists(t TestingT, path string, msgAndArgs ...interface{})\n```\nDirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.\n\n```go\nfunc DirExistsf(t TestingT, path string, msg string, args ...interface{})\n```\nDirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.\n\n```go\nfunc ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})\n```\nElementsMatch asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should match.\n\nassert.ElementsMatch(t, \\[1, 3, 2, 3], \\[1, 3, 3, 2])\n\n```go\nfunc ElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{})\n```\nElementsMatchf asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should match.\n\nassert.ElementsMatchf(t, \\[1, 3, 2, 3], \\[1, 3, 3, 2], \"error message %s\", \"formatted\")\n\n```go\nfunc Empty(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nEmpty asserts that the specified object is empty.  I.e. nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\tassert.Empty(t, obj)\n\n```go\nfunc Emptyf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nEmptyf asserts that the specified object is empty.  I.e. nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\tassert.Emptyf(t, obj, \"error message %s\", \"formatted\")\n\n```go\nfunc Equal(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nEqual asserts that two objects are equal.\n\n\tassert.Equal(t, 123, 123)\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses). Function equality cannot be determined and will always fail.\n\n```go\nfunc EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{})\n```\nEqualError asserts that a function returned an error (i.e. not \\`nil\\`) and that it is equal to the provided error.\n\n\tactualObj, err := SomeFunction()\n\tassert.EqualError(t, err,  expectedErrorString)\n\n```go\nfunc EqualErrorf(t TestingT, theError error, errString string, msg string, args ...interface{})\n```\nEqualErrorf asserts that a function returned an error (i.e. not \\`nil\\`) and that it is equal to the provided error.\n\n\tactualObj, err := SomeFunction()\n\tassert.EqualErrorf(t, err,  expectedErrorString, \"error message %s\", \"formatted\")\n\n```go\nfunc EqualExportedValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nEqualExportedValues asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that have private fields that could potentially differ.\n\n\t type S struct {\n\t\tExported     \tint\n\t\tnotExported   \tint\n\t }\n\t assert.EqualExportedValues(t, S{1, 2}, S{1, 3}) =\u003e true\n\t assert.EqualExportedValues(t, S{1, 2}, S{2, 3}) =\u003e false\n\n```go\nfunc EqualExportedValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nEqualExportedValuesf asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that have private fields that could potentially differ.\n\n\t type S struct {\n\t\tExported     \tint\n\t\tnotExported   \tint\n\t }\n\t assert.EqualExportedValuesf(t, S{1, 2}, S{1, 3}, \"error message %s\", \"formatted\") =\u003e true\n\t assert.EqualExportedValuesf(t, S{1, 2}, S{2, 3}, \"error message %s\", \"formatted\") =\u003e false\n\n```go\nfunc EqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nEqualValues asserts that two objects are equal or convertible to the same types and equal.\n\n\tassert.EqualValues(t, uint32(123), int32(123))\n\n```go\nfunc EqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nEqualValuesf asserts that two objects are equal or convertible to the same types and equal.\n\n\tassert.EqualValuesf(t, uint32(123), int32(123), \"error message %s\", \"formatted\")\n\n```go\nfunc Equalf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nEqualf asserts that two objects are equal.\n\n\tassert.Equalf(t, 123, 123, \"error message %s\", \"formatted\")\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses). Function equality cannot be determined and will always fail.\n\n```go\nfunc Error(t TestingT, err error, msgAndArgs ...interface{})\n```\nError asserts that a function returned an error (i.e. not \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if assert.Error(t, err) {\n\t\t   assert.Equal(t, expectedError, err)\n\t  }\n\n```go\nfunc ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{})\n```\nErrorAs asserts that at least one of the errors in err's chain matches target, and if so, sets target to that error value. This is a wrapper for errors.As.\n\n```go\nfunc ErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{})\n```\nErrorAsf asserts that at least one of the errors in err's chain matches target, and if so, sets target to that error value. This is a wrapper for errors.As.\n\n```go\nfunc ErrorContains(t TestingT, theError error, contains string, msgAndArgs ...interface{})\n```\nErrorContains asserts that a function returned an error (i.e. not \\`nil\\`) and that the error contains the specified substring.\n\n\tactualObj, err := SomeFunction()\n\tassert.ErrorContains(t, err,  expectedErrorSubString)\n\n```go\nfunc ErrorContainsf(t TestingT, theError error, contains string, msg string, args ...interface{})\n```\nErrorContainsf asserts that a function returned an error (i.e. not \\`nil\\`) and that the error contains the specified substring.\n\n\tactualObj, err := SomeFunction()\n\tassert.ErrorContainsf(t, err,  expectedErrorSubString, \"error message %s\", \"formatted\")\n\n```go\nfunc ErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{})\n```\nErrorIs asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc ErrorIsf(t TestingT, err error, target error, msg string, args ...interface{})\n```\nErrorIsf asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc Errorf(t TestingT, err error, msg string, args ...interface{})\n```\nErrorf asserts that a function returned an error (i.e. not \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if assert.Errorf(t, err, \"error message %s\", \"formatted\") {\n\t\t   assert.Equal(t, expectedErrorf, err)\n\t  }\n\n```go\nfunc Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})\n```\nEventually asserts that given condition will be met in waitFor time, periodically checking target function each tick.\n\n\tassert.Eventually(t, func() bool { return true; }, time.Second, 10*time.Millisecond)\n\n```go\nfunc EventuallyWithT(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})\n```\nEventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually, it supplies a CollectT to the condition function, so that the condition function can use the CollectT to call other assertions. The condition is considered \"met\" if no errors are raised in a tick. The supplied CollectT collects all errors from one tick (if there are any). If the condition is not met before waitFor, the collected errors of the last tick are copied to t.\n\n\texternalValue := false\n\tgo func() {\n\t\ttime.Sleep(8*time.Second)\n\t\texternalValue = true\n\t}()\n\tassert.EventuallyWithT(t, func(c *assert.CollectT) {\n\t\t// add assertions as needed; any assertion failure will fail the current tick\n\t\tassert.True(c, externalValue, \"expected 'externalValue' to be true\")\n\t}, 10*time.Second, 1*time.Second, \"external state has not changed to 'true'; still false\")\n\n```go\nfunc EventuallyWithTf(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{})\n```\nEventuallyWithTf asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually, it supplies a CollectT to the condition function, so that the condition function can use the CollectT to call other assertions. The condition is considered \"met\" if no errors are raised in a tick. The supplied CollectT collects all errors from one tick (if there are any). If the condition is not met before waitFor, the collected errors of the last tick are copied to t.\n\n\texternalValue := false\n\tgo func() {\n\t\ttime.Sleep(8*time.Second)\n\t\texternalValue = true\n\t}()\n\tassert.EventuallyWithTf(t, func(c *assert.CollectT, \"error message %s\", \"formatted\") {\n\t\t// add assertions as needed; any assertion failure will fail the current tick\n\t\tassert.True(c, externalValue, \"expected 'externalValue' to be true\")\n\t}, 10*time.Second, 1*time.Second, \"external state has not changed to 'true'; still false\")\n\n```go\nfunc Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})\n```\nEventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick.\n\n\tassert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, \"error message %s\", \"formatted\")\n\n```go\nfunc Exactly(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nExactly asserts that two objects are equal in value and type.\n\n\tassert.Exactly(t, int32(123), int64(123))\n\n```go\nfunc Exactlyf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nExactlyf asserts that two objects are equal in value and type.\n\n\tassert.Exactlyf(t, int32(123), int64(123), \"error message %s\", \"formatted\")\n\n```go\nfunc Fail(t TestingT, failureMessage string, msgAndArgs ...interface{})\n```\nFail reports a failure through\n\n```go\nfunc FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{})\n```\nFailNow fails test\n\n```go\nfunc FailNowf(t TestingT, failureMessage string, msg string, args ...interface{})\n```\nFailNowf fails test\n\n```go\nfunc Failf(t TestingT, failureMessage string, msg string, args ...interface{})\n```\nFailf reports a failure through\n\n```go\nfunc False(t TestingT, value bool, msgAndArgs ...interface{})\n```\nFalse asserts that the specified value is false.\n\n\tassert.False(t, myBool)\n\n```go\nfunc Falsef(t TestingT, value bool, msg string, args ...interface{})\n```\nFalsef asserts that the specified value is false.\n\n\tassert.Falsef(t, myBool, \"error message %s\", \"formatted\")\n\n```go\nfunc FileExists(t TestingT, path string, msgAndArgs ...interface{})\n```\nFileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.\n\n```go\nfunc FileExistsf(t TestingT, path string, msg string, args ...interface{})\n```\nFileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.\n\n```go\nfunc Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nGreater asserts that the first element is greater than the second\n\n\tassert.Greater(t, 2, 1)\n\tassert.Greater(t, float64(2), float64(1))\n\tassert.Greater(t, \"b\", \"a\")\n\n```go\nfunc GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nGreaterOrEqual asserts that the first element is greater than or equal to the second\n\n\tassert.GreaterOrEqual(t, 2, 1)\n\tassert.GreaterOrEqual(t, 2, 2)\n\tassert.GreaterOrEqual(t, \"b\", \"a\")\n\tassert.GreaterOrEqual(t, \"b\", \"b\")\n\n```go\nfunc GreaterOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nGreaterOrEqualf asserts that the first element is greater than or equal to the second\n\n\tassert.GreaterOrEqualf(t, 2, 1, \"error message %s\", \"formatted\")\n\tassert.GreaterOrEqualf(t, 2, 2, \"error message %s\", \"formatted\")\n\tassert.GreaterOrEqualf(t, \"b\", \"a\", \"error message %s\", \"formatted\")\n\tassert.GreaterOrEqualf(t, \"b\", \"b\", \"error message %s\", \"formatted\")\n\n```go\nfunc Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nGreaterf asserts that the first element is greater than the second\n\n\tassert.Greaterf(t, 2, 1, \"error message %s\", \"formatted\")\n\tassert.Greaterf(t, float64(2), float64(1), \"error message %s\", \"formatted\")\n\tassert.Greaterf(t, \"b\", \"a\", \"error message %s\", \"formatted\")\n\n```go\nfunc HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})\n```\nHTTPBodyContains asserts that a specified handler returns a body that contains a string.\n\n\tassert.HTTPBodyContains(t, myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})\n```\nHTTPBodyContainsf asserts that a specified handler returns a body that contains a string.\n\n\tassert.HTTPBodyContainsf(t, myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\", \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})\n```\nHTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string.\n\n\tassert.HTTPBodyNotContains(t, myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})\n```\nHTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string.\n\n\tassert.HTTPBodyNotContainsf(t, myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\", \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPError(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})\n```\nHTTPError asserts that a specified handler returns an error status code.\n\n\tassert.HTTPError(t, myHandler, \"POST\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPErrorf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})\n```\nHTTPErrorf asserts that a specified handler returns an error status code.\n\n\tassert.HTTPErrorf(t, myHandler, \"POST\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPRedirect(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})\n```\nHTTPRedirect asserts that a specified handler returns a redirect status code.\n\n\tassert.HTTPRedirect(t, myHandler, \"GET\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})\n```\nHTTPRedirectf asserts that a specified handler returns a redirect status code.\n\n\tassert.HTTPRedirectf(t, myHandler, \"GET\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPStatusCode(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msgAndArgs ...interface{})\n```\nHTTPStatusCode asserts that a specified handler returns a specified status code.\n\n\tassert.HTTPStatusCode(t, myHandler, \"GET\", \"/notImplemented\", nil, 501)\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPStatusCodef(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msg string, args ...interface{})\n```\nHTTPStatusCodef asserts that a specified handler returns a specified status code.\n\n\tassert.HTTPStatusCodef(t, myHandler, \"GET\", \"/notImplemented\", nil, 501, \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPSuccess(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})\n```\nHTTPSuccess asserts that a specified handler returns a success status code.\n\n\tassert.HTTPSuccess(t, myHandler, \"POST\", \"http://www.google.com\", nil)\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})\n```\nHTTPSuccessf asserts that a specified handler returns a success status code.\n\n\tassert.HTTPSuccessf(t, myHandler, \"POST\", \"http://www.google.com\", nil, \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})\n```\nImplements asserts that an object is implemented by the specified interface.\n\n\tassert.Implements(t, (*MyInterface)(nil), new(MyObject))\n\n```go\nfunc Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{})\n```\nImplementsf asserts that an object is implemented by the specified interface.\n\n\tassert.Implementsf(t, (*MyInterface)(nil), new(MyObject), \"error message %s\", \"formatted\")\n\n```go\nfunc InDelta(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})\n```\nInDelta asserts that the two numerals are within delta of each other.\n\n\tassert.InDelta(t, math.Pi, 22/7.0, 0.01)\n\n```go\nfunc InDeltaMapValues(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})\n```\nInDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.\n\n```go\nfunc InDeltaMapValuesf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})\n```\nInDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.\n\n```go\nfunc InDeltaSlice(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})\n```\nInDeltaSlice is the same as InDelta, except it compares two slices.\n\n```go\nfunc InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})\n```\nInDeltaSlicef is the same as InDelta, except it compares two slices.\n\n```go\nfunc InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})\n```\nInDeltaf asserts that the two numerals are within delta of each other.\n\n\tassert.InDeltaf(t, math.Pi, 22/7.0, 0.01, \"error message %s\", \"formatted\")\n\n```go\nfunc InEpsilon(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})\n```\nInEpsilon asserts that expected and actual have a relative error less than epsilon\n\n```go\nfunc InEpsilonSlice(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})\n```\nInEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.\n\n```go\nfunc InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})\n```\nInEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.\n\n```go\nfunc InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})\n```\nInEpsilonf asserts that expected and actual have a relative error less than epsilon\n\n```go\nfunc IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nIsDecreasing asserts that the collection is decreasing\n\n\tassert.IsDecreasing(t, []int{2, 1, 0})\n\tassert.IsDecreasing(t, []float{2, 1})\n\tassert.IsDecreasing(t, []string{\"b\", \"a\"})\n\n```go\nfunc IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nIsDecreasingf asserts that the collection is decreasing\n\n\tassert.IsDecreasingf(t, []int{2, 1, 0}, \"error message %s\", \"formatted\")\n\tassert.IsDecreasingf(t, []float{2, 1}, \"error message %s\", \"formatted\")\n\tassert.IsDecreasingf(t, []string{\"b\", \"a\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nIsIncreasing asserts that the collection is increasing\n\n\tassert.IsIncreasing(t, []int{1, 2, 3})\n\tassert.IsIncreasing(t, []float{1, 2})\n\tassert.IsIncreasing(t, []string{\"a\", \"b\"})\n\n```go\nfunc IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nIsIncreasingf asserts that the collection is increasing\n\n\tassert.IsIncreasingf(t, []int{1, 2, 3}, \"error message %s\", \"formatted\")\n\tassert.IsIncreasingf(t, []float{1, 2}, \"error message %s\", \"formatted\")\n\tassert.IsIncreasingf(t, []string{\"a\", \"b\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nIsNonDecreasing asserts that the collection is not decreasing\n\n\tassert.IsNonDecreasing(t, []int{1, 1, 2})\n\tassert.IsNonDecreasing(t, []float{1, 2})\n\tassert.IsNonDecreasing(t, []string{\"a\", \"b\"})\n\n```go\nfunc IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nIsNonDecreasingf asserts that the collection is not decreasing\n\n\tassert.IsNonDecreasingf(t, []int{1, 1, 2}, \"error message %s\", \"formatted\")\n\tassert.IsNonDecreasingf(t, []float{1, 2}, \"error message %s\", \"formatted\")\n\tassert.IsNonDecreasingf(t, []string{\"a\", \"b\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nIsNonIncreasing asserts that the collection is not increasing\n\n\tassert.IsNonIncreasing(t, []int{2, 1, 1})\n\tassert.IsNonIncreasing(t, []float{2, 1})\n\tassert.IsNonIncreasing(t, []string{\"b\", \"a\"})\n\n```go\nfunc IsNonIncreasingf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nIsNonIncreasingf asserts that the collection is not increasing\n\n\tassert.IsNonIncreasingf(t, []int{2, 1, 1}, \"error message %s\", \"formatted\")\n\tassert.IsNonIncreasingf(t, []float{2, 1}, \"error message %s\", \"formatted\")\n\tassert.IsNonIncreasingf(t, []string{\"b\", \"a\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{})\n```\nIsType asserts that the specified objects are of the same type.\n\n```go\nfunc IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{})\n```\nIsTypef asserts that the specified objects are of the same type.\n\n```go\nfunc JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{})\n```\nJSONEq asserts that two JSON strings are equivalent.\n\n\tassert.JSONEq(t, `{\"hello\": \"world\", \"foo\": \"bar\"}`, `{\"foo\": \"bar\", \"hello\": \"world\"}`)\n\n```go\nfunc JSONEqf(t TestingT, expected string, actual string, msg string, args ...interface{})\n```\nJSONEqf asserts that two JSON strings are equivalent.\n\n\tassert.JSONEqf(t, `{\"hello\": \"world\", \"foo\": \"bar\"}`, `{\"foo\": \"bar\", \"hello\": \"world\"}`, \"error message %s\", \"formatted\")\n\n```go\nfunc Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{})\n```\nLen asserts that the specified object has specific length. Len also fails if the object has a type that len() not accept.\n\n\tassert.Len(t, mySlice, 3)\n\n```go\nfunc Lenf(t TestingT, object interface{}, length int, msg string, args ...interface{})\n```\nLenf asserts that the specified object has specific length. Lenf also fails if the object has a type that len() not accept.\n\n\tassert.Lenf(t, mySlice, 3, \"error message %s\", \"formatted\")\n\n```go\nfunc Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nLess asserts that the first element is less than the second\n\n\tassert.Less(t, 1, 2)\n\tassert.Less(t, float64(1), float64(2))\n\tassert.Less(t, \"a\", \"b\")\n\n```go\nfunc LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nLessOrEqual asserts that the first element is less than or equal to the second\n\n\tassert.LessOrEqual(t, 1, 2)\n\tassert.LessOrEqual(t, 2, 2)\n\tassert.LessOrEqual(t, \"a\", \"b\")\n\tassert.LessOrEqual(t, \"b\", \"b\")\n\n```go\nfunc LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nLessOrEqualf asserts that the first element is less than or equal to the second\n\n\tassert.LessOrEqualf(t, 1, 2, \"error message %s\", \"formatted\")\n\tassert.LessOrEqualf(t, 2, 2, \"error message %s\", \"formatted\")\n\tassert.LessOrEqualf(t, \"a\", \"b\", \"error message %s\", \"formatted\")\n\tassert.LessOrEqualf(t, \"b\", \"b\", \"error message %s\", \"formatted\")\n\n```go\nfunc Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nLessf asserts that the first element is less than the second\n\n\tassert.Lessf(t, 1, 2, \"error message %s\", \"formatted\")\n\tassert.Lessf(t, float64(1), float64(2), \"error message %s\", \"formatted\")\n\tassert.Lessf(t, \"a\", \"b\", \"error message %s\", \"formatted\")\n\n```go\nfunc Negative(t TestingT, e interface{}, msgAndArgs ...interface{})\n```\nNegative asserts that the specified element is negative\n\n\tassert.Negative(t, -1)\n\tassert.Negative(t, -1.23)\n\n```go\nfunc Negativef(t TestingT, e interface{}, msg string, args ...interface{})\n```\nNegativef asserts that the specified element is negative\n\n\tassert.Negativef(t, -1, \"error message %s\", \"formatted\")\n\tassert.Negativef(t, -1.23, \"error message %s\", \"formatted\")\n\n```go\nfunc Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})\n```\nNever asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick.\n\n\tassert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond)\n\n```go\nfunc Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})\n```\nNeverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick.\n\n\tassert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, \"error message %s\", \"formatted\")\n\n```go\nfunc Nil(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nNil asserts that the specified object is nil.\n\n\tassert.Nil(t, err)\n\n```go\nfunc Nilf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nNilf asserts that the specified object is nil.\n\n\tassert.Nilf(t, err, \"error message %s\", \"formatted\")\n\n```go\nfunc NoDirExists(t TestingT, path string, msgAndArgs ...interface{})\n```\nNoDirExists checks whether a directory does not exist in the given path. It fails if the path points to an existing \\_directory\\_ only.\n\n```go\nfunc NoDirExistsf(t TestingT, path string, msg string, args ...interface{})\n```\nNoDirExistsf checks whether a directory does not exist in the given path. It fails if the path points to an existing \\_directory\\_ only.\n\n```go\nfunc NoError(t TestingT, err error, msgAndArgs ...interface{})\n```\nNoError asserts that a function returned no error (i.e. \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if assert.NoError(t, err) {\n\t\t   assert.Equal(t, expectedObj, actualObj)\n\t  }\n\n```go\nfunc NoErrorf(t TestingT, err error, msg string, args ...interface{})\n```\nNoErrorf asserts that a function returned no error (i.e. \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if assert.NoErrorf(t, err, \"error message %s\", \"formatted\") {\n\t\t   assert.Equal(t, expectedObj, actualObj)\n\t  }\n\n```go\nfunc NoFileExists(t TestingT, path string, msgAndArgs ...interface{})\n```\nNoFileExists checks whether a file does not exist in a given path. It fails if the path points to an existing \\_file\\_ only.\n\n```go\nfunc NoFileExistsf(t TestingT, path string, msg string, args ...interface{})\n```\nNoFileExistsf checks whether a file does not exist in a given path. It fails if the path points to an existing \\_file\\_ only.\n\n```go\nfunc NotContains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})\n```\nNotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element.\n\n\tassert.NotContains(t, \"Hello World\", \"Earth\")\n\tassert.NotContains(t, [\"Hello\", \"World\"], \"Earth\")\n\tassert.NotContains(t, {\"Hello\": \"World\"}, \"Earth\")\n\n```go\nfunc NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{})\n```\nNotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element.\n\n\tassert.NotContainsf(t, \"Hello World\", \"Earth\", \"error message %s\", \"formatted\")\n\tassert.NotContainsf(t, [\"Hello\", \"World\"], \"Earth\", \"error message %s\", \"formatted\")\n\tassert.NotContainsf(t, {\"Hello\": \"World\"}, \"Earth\", \"error message %s\", \"formatted\")\n\n```go\nfunc NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nNotEmpty asserts that the specified object is NOT empty.  I.e. not nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\tif assert.NotEmpty(t, obj) {\n\t  assert.Equal(t, \"two\", obj[1])\n\t}\n\n```go\nfunc NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nNotEmptyf asserts that the specified object is NOT empty.  I.e. not nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\tif assert.NotEmptyf(t, obj, \"error message %s\", \"formatted\") {\n\t  assert.Equal(t, \"two\", obj[1])\n\t}\n\n```go\nfunc NotEqual(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nNotEqual asserts that the specified values are NOT equal.\n\n\tassert.NotEqual(t, obj1, obj2)\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses).\n\n```go\nfunc NotEqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nNotEqualValues asserts that two objects are not equal even when converted to the same type\n\n\tassert.NotEqualValues(t, obj1, obj2)\n\n```go\nfunc NotEqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nNotEqualValuesf asserts that two objects are not equal even when converted to the same type\n\n\tassert.NotEqualValuesf(t, obj1, obj2, \"error message %s\", \"formatted\")\n\n```go\nfunc NotEqualf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nNotEqualf asserts that the specified values are NOT equal.\n\n\tassert.NotEqualf(t, obj1, obj2, \"error message %s\", \"formatted\")\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses).\n\n```go\nfunc NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{})\n```\nNotErrorIs asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{})\n```\nNotErrorIsf asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc NotImplements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})\n```\nNotImplements asserts that an object does not implement the specified interface.\n\n\tassert.NotImplements(t, (*MyInterface)(nil), new(MyObject))\n\n```go\nfunc NotImplementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{})\n```\nNotImplementsf asserts that an object does not implement the specified interface.\n\n\tassert.NotImplementsf(t, (*MyInterface)(nil), new(MyObject), \"error message %s\", \"formatted\")\n\n```go\nfunc NotNil(t TestingT, object interface{}, msgAndArgs ...interface{})\n```\nNotNil asserts that the specified object is not nil.\n\n\tassert.NotNil(t, err)\n\n```go\nfunc NotNilf(t TestingT, object interface{}, msg string, args ...interface{})\n```\nNotNilf asserts that the specified object is not nil.\n\n\tassert.NotNilf(t, err, \"error message %s\", \"formatted\")\n\n```go\nfunc NotPanics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nNotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.\n\n\tassert.NotPanics(t, func(){ RemainCalm() })\n\n```go\nfunc NotPanicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{})\n```\nNotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic.\n\n\tassert.NotPanicsf(t, func(){ RemainCalm() }, \"error message %s\", \"formatted\")\n\n```go\nfunc NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})\n```\nNotRegexp asserts that a specified regexp does not match a string.\n\n\tassert.NotRegexp(t, regexp.MustCompile(\"starts\"), \"it's starting\")\n\tassert.NotRegexp(t, \"^start\", \"it's not starting\")\n\n```go\nfunc NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{})\n```\nNotRegexpf asserts that a specified regexp does not match a string.\n\n\tassert.NotRegexpf(t, regexp.MustCompile(\"starts\"), \"it's starting\", \"error message %s\", \"formatted\")\n\tassert.NotRegexpf(t, \"^start\", \"it's not starting\", \"error message %s\", \"formatted\")\n\n```go\nfunc NotSame(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nNotSame asserts that two pointers do not reference the same object.\n\n\tassert.NotSame(t, ptr1, ptr2)\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nNotSamef asserts that two pointers do not reference the same object.\n\n\tassert.NotSamef(t, ptr1, ptr2, \"error message %s\", \"formatted\")\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc NotSubset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})\n```\nNotSubset asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or map.\n\n\tassert.NotSubset(t, [1, 3, 4], [1, 2])\n\tassert.NotSubset(t, {\"x\": 1, \"y\": 2}, {\"z\": 3})\n\n```go\nfunc NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{})\n```\nNotSubsetf asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or map.\n\n\tassert.NotSubsetf(t, [1, 3, 4], [1, 2], \"error message %s\", \"formatted\")\n\tassert.NotSubsetf(t, {\"x\": 1, \"y\": 2}, {\"z\": 3}, \"error message %s\", \"formatted\")\n\n```go\nfunc NotZero(t TestingT, i interface{}, msgAndArgs ...interface{})\n```\nNotZero asserts that i is not the zero value for its type.\n\n```go\nfunc NotZerof(t TestingT, i interface{}, msg string, args ...interface{})\n```\nNotZerof asserts that i is not the zero value for its type.\n\n```go\nfunc Panics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nPanics asserts that the code inside the specified PanicTestFunc panics.\n\n\tassert.Panics(t, func(){ GoCrazy() })\n\n```go\nfunc PanicsWithError(t TestingT, errString string, f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nPanicsWithError asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the EqualError comparison.\n\n\tassert.PanicsWithError(t, \"crazy error\", func(){ GoCrazy() })\n\n```go\nfunc PanicsWithErrorf(t TestingT, errString string, f assert.PanicTestFunc, msg string, args ...interface{})\n```\nPanicsWithErrorf asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the EqualError comparison.\n\n\tassert.PanicsWithErrorf(t, \"crazy error\", func(){ GoCrazy() }, \"error message %s\", \"formatted\")\n\n```go\nfunc PanicsWithValue(t TestingT, expected interface{}, f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nPanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.\n\n\tassert.PanicsWithValue(t, \"crazy error\", func(){ GoCrazy() })\n\n```go\nfunc PanicsWithValuef(t TestingT, expected interface{}, f assert.PanicTestFunc, msg string, args ...interface{})\n```\nPanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.\n\n\tassert.PanicsWithValuef(t, \"crazy error\", func(){ GoCrazy() }, \"error message %s\", \"formatted\")\n\n```go\nfunc Panicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{})\n```\nPanicsf asserts that the code inside the specified PanicTestFunc panics.\n\n\tassert.Panicsf(t, func(){ GoCrazy() }, \"error message %s\", \"formatted\")\n\n```go\nfunc Positive(t TestingT, e interface{}, msgAndArgs ...interface{})\n```\nPositive asserts that the specified element is positive\n\n\tassert.Positive(t, 1)\n\tassert.Positive(t, 1.23)\n\n```go\nfunc Positivef(t TestingT, e interface{}, msg string, args ...interface{})\n```\nPositivef asserts that the specified element is positive\n\n\tassert.Positivef(t, 1, \"error message %s\", \"formatted\")\n\tassert.Positivef(t, 1.23, \"error message %s\", \"formatted\")\n\n```go\nfunc Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})\n```\nRegexp asserts that a specified regexp matches a string.\n\n\tassert.Regexp(t, regexp.MustCompile(\"start\"), \"it's starting\")\n\tassert.Regexp(t, \"start...$\", \"it's not starting\")\n\n```go\nfunc Regexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{})\n```\nRegexpf asserts that a specified regexp matches a string.\n\n\tassert.Regexpf(t, regexp.MustCompile(\"start\"), \"it's starting\", \"error message %s\", \"formatted\")\n\tassert.Regexpf(t, \"start...$\", \"it's not starting\", \"error message %s\", \"formatted\")\n\n```go\nfunc Same(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nSame asserts that two pointers reference the same object.\n\n\tassert.Same(t, ptr1, ptr2)\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc Samef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nSamef asserts that two pointers reference the same object.\n\n\tassert.Samef(t, ptr1, ptr2, \"error message %s\", \"formatted\")\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc Subset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})\n```\nSubset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map.\n\n\tassert.Subset(t, [1, 2, 3], [1, 2])\n\tassert.Subset(t, {\"x\": 1, \"y\": 2}, {\"x\": 1})\n\n```go\nfunc Subsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{})\n```\nSubsetf asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map.\n\n\tassert.Subsetf(t, [1, 2, 3], [1, 2], \"error message %s\", \"formatted\")\n\tassert.Subsetf(t, {\"x\": 1, \"y\": 2}, {\"x\": 1}, \"error message %s\", \"formatted\")\n\n```go\nfunc True(t TestingT, value bool, msgAndArgs ...interface{})\n```\nTrue asserts that the specified value is true.\n\n\tassert.True(t, myBool)\n\n```go\nfunc Truef(t TestingT, value bool, msg string, args ...interface{})\n```\nTruef asserts that the specified value is true.\n\n\tassert.Truef(t, myBool, \"error message %s\", \"formatted\")\n\n```go\nfunc WithinDuration(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{})\n```\nWithinDuration asserts that the two times are within duration delta of each other.\n\n\tassert.WithinDuration(t, time.Now(), time.Now(), 10*time.Second)\n\n```go\nfunc WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{})\n```\nWithinDurationf asserts that the two times are within duration delta of each other.\n\n\tassert.WithinDurationf(t, time.Now(), time.Now(), 10*time.Second, \"error message %s\", \"formatted\")\n\n```go\nfunc WithinRange(t TestingT, actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{})\n```\nWithinRange asserts that a time is within a time range (inclusive).\n\n\tassert.WithinRange(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second))\n\n```go\nfunc WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{})\n```\nWithinRangef asserts that a time is within a time range (inclusive).\n\n\tassert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), \"error message %s\", \"formatted\")\n\n```go\nfunc Zero(t TestingT, i interface{}, msgAndArgs ...interface{})\n```\nZero asserts that i is the zero value for its type.\n\n```go\nfunc Zerof(t TestingT, i interface{}, msg string, args ...interface{})\n```\nZerof asserts that i is the zero value for its type.\n\n## Types\n\n```go\ntype Assertions struct {\n\t// contains filtered or unexported fields\n}\n```\nAssertions provides assertion methods around the TestingT interface.\n\n```go\nfunc New(t TestingT) *Assertions\n```\nNew makes a new Assertions object for the specified TestingT.\n\n```go\nfunc (a *Assertions) Condition(comp assert.Comparison, msgAndArgs ...interface{})\n```\nCondition uses a Comparison to assert a complex condition.\n\n```go\nfunc (a *Assertions) Conditionf(comp assert.Comparison, msg string, args ...interface{})\n```\nConditionf uses a Comparison to assert a complex condition.\n\n```go\nfunc (a *Assertions) Contains(s interface{}, contains interface{}, msgAndArgs ...interface{})\n```\nContains asserts that the specified string, list(array, slice...) or map contains the specified substring or element.\n\n\ta.Contains(\"Hello World\", \"World\")\n\ta.Contains([\"Hello\", \"World\"], \"World\")\n\ta.Contains({\"Hello\": \"World\"}, \"Hello\")\n\n```go\nfunc (a *Assertions) Containsf(s interface{}, contains interface{}, msg string, args ...interface{})\n```\nContainsf asserts that the specified string, list(array, slice...) or map contains the specified substring or element.\n\n\ta.Containsf(\"Hello World\", \"World\", \"error message %s\", \"formatted\")\n\ta.Containsf([\"Hello\", \"World\"], \"World\", \"error message %s\", \"formatted\")\n\ta.Containsf({\"Hello\": \"World\"}, \"Hello\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) DirExists(path string, msgAndArgs ...interface{})\n```\nDirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.\n\n```go\nfunc (a *Assertions) DirExistsf(path string, msg string, args ...interface{})\n```\nDirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.\n\n```go\nfunc (a *Assertions) ElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{})\n```\nElementsMatch asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should match.\n\na.ElementsMatch(\\[1, 3, 2, 3], \\[1, 3, 3, 2])\n\n```go\nfunc (a *Assertions) ElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{})\n```\nElementsMatchf asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should match.\n\na.ElementsMatchf(\\[1, 3, 2, 3], \\[1, 3, 3, 2], \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{})\n```\nEmpty asserts that the specified object is empty.  I.e. nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\ta.Empty(obj)\n\n```go\nfunc (a *Assertions) Emptyf(object interface{}, msg string, args ...interface{})\n```\nEmptyf asserts that the specified object is empty.  I.e. nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\ta.Emptyf(obj, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Equal(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nEqual asserts that two objects are equal.\n\n\ta.Equal(123, 123)\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses). Function equality cannot be determined and will always fail.\n\n```go\nfunc (a *Assertions) EqualError(theError error, errString string, msgAndArgs ...interface{})\n```\nEqualError asserts that a function returned an error (i.e. not \\`nil\\`) and that it is equal to the provided error.\n\n\tactualObj, err := SomeFunction()\n\ta.EqualError(err,  expectedErrorString)\n\n```go\nfunc (a *Assertions) EqualErrorf(theError error, errString string, msg string, args ...interface{})\n```\nEqualErrorf asserts that a function returned an error (i.e. not \\`nil\\`) and that it is equal to the provided error.\n\n\tactualObj, err := SomeFunction()\n\ta.EqualErrorf(err,  expectedErrorString, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) EqualExportedValues(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nEqualExportedValues asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that have private fields that could potentially differ.\n\n\t type S struct {\n\t\tExported     \tint\n\t\tnotExported   \tint\n\t }\n\t a.EqualExportedValues(S{1, 2}, S{1, 3}) =\u003e true\n\t a.EqualExportedValues(S{1, 2}, S{2, 3}) =\u003e false\n\n```go\nfunc (a *Assertions) EqualExportedValuesf(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nEqualExportedValuesf asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that have private fields that could potentially differ.\n\n\t type S struct {\n\t\tExported     \tint\n\t\tnotExported   \tint\n\t }\n\t a.EqualExportedValuesf(S{1, 2}, S{1, 3}, \"error message %s\", \"formatted\") =\u003e true\n\t a.EqualExportedValuesf(S{1, 2}, S{2, 3}, \"error message %s\", \"formatted\") =\u003e false\n\n```go\nfunc (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nEqualValues asserts that two objects are equal or convertible to the same types and equal.\n\n\ta.EqualValues(uint32(123), int32(123))\n\n```go\nfunc (a *Assertions) EqualValuesf(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nEqualValuesf asserts that two objects are equal or convertible to the same types and equal.\n\n\ta.EqualValuesf(uint32(123), int32(123), \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Equalf(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nEqualf asserts that two objects are equal.\n\n\ta.Equalf(123, 123, \"error message %s\", \"formatted\")\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses). Function equality cannot be determined and will always fail.\n\n```go\nfunc (a *Assertions) Error(err error, msgAndArgs ...interface{})\n```\nError asserts that a function returned an error (i.e. not \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if a.Error(err) {\n\t\t   assert.Equal(t, expectedError, err)\n\t  }\n\n```go\nfunc (a *Assertions) ErrorAs(err error, target interface{}, msgAndArgs ...interface{})\n```\nErrorAs asserts that at least one of the errors in err's chain matches target, and if so, sets target to that error value. This is a wrapper for errors.As.\n\n```go\nfunc (a *Assertions) ErrorAsf(err error, target interface{}, msg string, args ...interface{})\n```\nErrorAsf asserts that at least one of the errors in err's chain matches target, and if so, sets target to that error value. This is a wrapper for errors.As.\n\n```go\nfunc (a *Assertions) ErrorContains(theError error, contains string, msgAndArgs ...interface{})\n```\nErrorContains asserts that a function returned an error (i.e. not \\`nil\\`) and that the error contains the specified substring.\n\n\tactualObj, err := SomeFunction()\n\ta.ErrorContains(err,  expectedErrorSubString)\n\n```go\nfunc (a *Assertions) ErrorContainsf(theError error, contains string, msg string, args ...interface{})\n```\nErrorContainsf asserts that a function returned an error (i.e. not \\`nil\\`) and that the error contains the specified substring.\n\n\tactualObj, err := SomeFunction()\n\ta.ErrorContainsf(err,  expectedErrorSubString, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) ErrorIs(err error, target error, msgAndArgs ...interface{})\n```\nErrorIs asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc (a *Assertions) ErrorIsf(err error, target error, msg string, args ...interface{})\n```\nErrorIsf asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc (a *Assertions) Errorf(err error, msg string, args ...interface{})\n```\nErrorf asserts that a function returned an error (i.e. not \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if a.Errorf(err, \"error message %s\", \"formatted\") {\n\t\t   assert.Equal(t, expectedErrorf, err)\n\t  }\n\n```go\nfunc (a *Assertions) Eventually(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})\n```\nEventually asserts that given condition will be met in waitFor time, periodically checking target function each tick.\n\n\ta.Eventually(func() bool { return true; }, time.Second, 10*time.Millisecond)\n\n```go\nfunc (a *Assertions) EventuallyWithT(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})\n```\nEventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually, it supplies a CollectT to the condition function, so that the condition function can use the CollectT to call other assertions. The condition is considered \"met\" if no errors are raised in a tick. The supplied CollectT collects all errors from one tick (if there are any). If the condition is not met before waitFor, the collected errors of the last tick are copied to t.\n\n\texternalValue := false\n\tgo func() {\n\t\ttime.Sleep(8*time.Second)\n\t\texternalValue = true\n\t}()\n\ta.EventuallyWithT(func(c *assert.CollectT) {\n\t\t// add assertions as needed; any assertion failure will fail the current tick\n\t\tassert.True(c, externalValue, \"expected 'externalValue' to be true\")\n\t}, 10*time.Second, 1*time.Second, \"external state has not changed to 'true'; still false\")\n\n```go\nfunc (a *Assertions) EventuallyWithTf(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{})\n```\nEventuallyWithTf asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually, it supplies a CollectT to the condition function, so that the condition function can use the CollectT to call other assertions. The condition is considered \"met\" if no errors are raised in a tick. The supplied CollectT collects all errors from one tick (if there are any). If the condition is not met before waitFor, the collected errors of the last tick are copied to t.\n\n\texternalValue := false\n\tgo func() {\n\t\ttime.Sleep(8*time.Second)\n\t\texternalValue = true\n\t}()\n\ta.EventuallyWithTf(func(c *assert.CollectT, \"error message %s\", \"formatted\") {\n\t\t// add assertions as needed; any assertion failure will fail the current tick\n\t\tassert.True(c, externalValue, \"expected 'externalValue' to be true\")\n\t}, 10*time.Second, 1*time.Second, \"external state has not changed to 'true'; still false\")\n\n```go\nfunc (a *Assertions) Eventuallyf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})\n```\nEventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick.\n\n\ta.Eventuallyf(func() bool { return true; }, time.Second, 10*time.Millisecond, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Exactly(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nExactly asserts that two objects are equal in value and type.\n\n\ta.Exactly(int32(123), int64(123))\n\n```go\nfunc (a *Assertions) Exactlyf(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nExactlyf asserts that two objects are equal in value and type.\n\n\ta.Exactlyf(int32(123), int64(123), \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Fail(failureMessage string, msgAndArgs ...interface{})\n```\nFail reports a failure through\n\n```go\nfunc (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{})\n```\nFailNow fails test\n\n```go\nfunc (a *Assertions) FailNowf(failureMessage string, msg string, args ...interface{})\n```\nFailNowf fails test\n\n```go\nfunc (a *Assertions) Failf(failureMessage string, msg string, args ...interface{})\n```\nFailf reports a failure through\n\n```go\nfunc (a *Assertions) False(value bool, msgAndArgs ...interface{})\n```\nFalse asserts that the specified value is false.\n\n\ta.False(myBool)\n\n```go\nfunc (a *Assertions) Falsef(value bool, msg string, args ...interface{})\n```\nFalsef asserts that the specified value is false.\n\n\ta.Falsef(myBool, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) FileExists(path string, msgAndArgs ...interface{})\n```\nFileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.\n\n```go\nfunc (a *Assertions) FileExistsf(path string, msg string, args ...interface{})\n```\nFileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.\n\n```go\nfunc (a *Assertions) Greater(e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nGreater asserts that the first element is greater than the second\n\n\ta.Greater(2, 1)\n\ta.Greater(float64(2), float64(1))\n\ta.Greater(\"b\", \"a\")\n\n```go\nfunc (a *Assertions) GreaterOrEqual(e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nGreaterOrEqual asserts that the first element is greater than or equal to the second\n\n\ta.GreaterOrEqual(2, 1)\n\ta.GreaterOrEqual(2, 2)\n\ta.GreaterOrEqual(\"b\", \"a\")\n\ta.GreaterOrEqual(\"b\", \"b\")\n\n```go\nfunc (a *Assertions) GreaterOrEqualf(e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nGreaterOrEqualf asserts that the first element is greater than or equal to the second\n\n\ta.GreaterOrEqualf(2, 1, \"error message %s\", \"formatted\")\n\ta.GreaterOrEqualf(2, 2, \"error message %s\", \"formatted\")\n\ta.GreaterOrEqualf(\"b\", \"a\", \"error message %s\", \"formatted\")\n\ta.GreaterOrEqualf(\"b\", \"b\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Greaterf(e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nGreaterf asserts that the first element is greater than the second\n\n\ta.Greaterf(2, 1, \"error message %s\", \"formatted\")\n\ta.Greaterf(float64(2), float64(1), \"error message %s\", \"formatted\")\n\ta.Greaterf(\"b\", \"a\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) HTTPBodyContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})\n```\nHTTPBodyContains asserts that a specified handler returns a body that contains a string.\n\n\ta.HTTPBodyContains(myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPBodyContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})\n```\nHTTPBodyContainsf asserts that a specified handler returns a body that contains a string.\n\n\ta.HTTPBodyContainsf(myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\", \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})\n```\nHTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string.\n\n\ta.HTTPBodyNotContains(myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPBodyNotContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})\n```\nHTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string.\n\n\ta.HTTPBodyNotContainsf(myHandler, \"GET\", \"www.google.com\", nil, \"I'm Feeling Lucky\", \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPError(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})\n```\nHTTPError asserts that a specified handler returns an error status code.\n\n\ta.HTTPError(myHandler, \"POST\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPErrorf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})\n```\nHTTPErrorf asserts that a specified handler returns an error status code.\n\n\ta.HTTPErrorf(myHandler, \"POST\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})\n```\nHTTPRedirect asserts that a specified handler returns a redirect status code.\n\n\ta.HTTPRedirect(myHandler, \"GET\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPRedirectf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})\n```\nHTTPRedirectf asserts that a specified handler returns a redirect status code.\n\n\ta.HTTPRedirectf(myHandler, \"GET\", \"/a/b/c\", url.Values{\"a\": []string{\"b\", \"c\"}}\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPStatusCode(handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msgAndArgs ...interface{})\n```\nHTTPStatusCode asserts that a specified handler returns a specified status code.\n\n\ta.HTTPStatusCode(myHandler, \"GET\", \"/notImplemented\", nil, 501)\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPStatusCodef(handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msg string, args ...interface{})\n```\nHTTPStatusCodef asserts that a specified handler returns a specified status code.\n\n\ta.HTTPStatusCodef(myHandler, \"GET\", \"/notImplemented\", nil, 501, \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})\n```\nHTTPSuccess asserts that a specified handler returns a success status code.\n\n\ta.HTTPSuccess(myHandler, \"POST\", \"http://www.google.com\", nil)\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) HTTPSuccessf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})\n```\nHTTPSuccessf asserts that a specified handler returns a success status code.\n\n\ta.HTTPSuccessf(myHandler, \"POST\", \"http://www.google.com\", nil, \"error message %s\", \"formatted\")\n\nReturns whether the assertion was successful (true) or not (false).\n\n```go\nfunc (a *Assertions) Implements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})\n```\nImplements asserts that an object is implemented by the specified interface.\n\n\ta.Implements((*MyInterface)(nil), new(MyObject))\n\n```go\nfunc (a *Assertions) Implementsf(interfaceObject interface{}, object interface{}, msg string, args ...interface{})\n```\nImplementsf asserts that an object is implemented by the specified interface.\n\n\ta.Implementsf((*MyInterface)(nil), new(MyObject), \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})\n```\nInDelta asserts that the two numerals are within delta of each other.\n\n\ta.InDelta(math.Pi, 22/7.0, 0.01)\n\n```go\nfunc (a *Assertions) InDeltaMapValues(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})\n```\nInDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.\n\n```go\nfunc (a *Assertions) InDeltaMapValuesf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})\n```\nInDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.\n\n```go\nfunc (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})\n```\nInDeltaSlice is the same as InDelta, except it compares two slices.\n\n```go\nfunc (a *Assertions) InDeltaSlicef(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})\n```\nInDeltaSlicef is the same as InDelta, except it compares two slices.\n\n```go\nfunc (a *Assertions) InDeltaf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})\n```\nInDeltaf asserts that the two numerals are within delta of each other.\n\n\ta.InDeltaf(math.Pi, 22/7.0, 0.01, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})\n```\nInEpsilon asserts that expected and actual have a relative error less than epsilon\n\n```go\nfunc (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})\n```\nInEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.\n\n```go\nfunc (a *Assertions) InEpsilonSlicef(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})\n```\nInEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.\n\n```go\nfunc (a *Assertions) InEpsilonf(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})\n```\nInEpsilonf asserts that expected and actual have a relative error less than epsilon\n\n```go\nfunc (a *Assertions) IsDecreasing(object interface{}, msgAndArgs ...interface{})\n```\nIsDecreasing asserts that the collection is decreasing\n\n\ta.IsDecreasing([]int{2, 1, 0})\n\ta.IsDecreasing([]float{2, 1})\n\ta.IsDecreasing([]string{\"b\", \"a\"})\n\n```go\nfunc (a *Assertions) IsDecreasingf(object interface{}, msg string, args ...interface{})\n```\nIsDecreasingf asserts that the collection is decreasing\n\n\ta.IsDecreasingf([]int{2, 1, 0}, \"error message %s\", \"formatted\")\n\ta.IsDecreasingf([]float{2, 1}, \"error message %s\", \"formatted\")\n\ta.IsDecreasingf([]string{\"b\", \"a\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) IsIncreasing(object interface{}, msgAndArgs ...interface{})\n```\nIsIncreasing asserts that the collection is increasing\n\n\ta.IsIncreasing([]int{1, 2, 3})\n\ta.IsIncreasing([]float{1, 2})\n\ta.IsIncreasing([]string{\"a\", \"b\"})\n\n```go\nfunc (a *Assertions) IsIncreasingf(object interface{}, msg string, args ...interface{})\n```\nIsIncreasingf asserts that the collection is increasing\n\n\ta.IsIncreasingf([]int{1, 2, 3}, \"error message %s\", \"formatted\")\n\ta.IsIncreasingf([]float{1, 2}, \"error message %s\", \"formatted\")\n\ta.IsIncreasingf([]string{\"a\", \"b\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) IsNonDecreasing(object interface{}, msgAndArgs ...interface{})\n```\nIsNonDecreasing asserts that the collection is not decreasing\n\n\ta.IsNonDecreasing([]int{1, 1, 2})\n\ta.IsNonDecreasing([]float{1, 2})\n\ta.IsNonDecreasing([]string{\"a\", \"b\"})\n\n```go\nfunc (a *Assertions) IsNonDecreasingf(object interface{}, msg string, args ...interface{})\n```\nIsNonDecreasingf asserts that the collection is not decreasing\n\n\ta.IsNonDecreasingf([]int{1, 1, 2}, \"error message %s\", \"formatted\")\n\ta.IsNonDecreasingf([]float{1, 2}, \"error message %s\", \"formatted\")\n\ta.IsNonDecreasingf([]string{\"a\", \"b\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) IsNonIncreasing(object interface{}, msgAndArgs ...interface{})\n```\nIsNonIncreasing asserts that the collection is not increasing\n\n\ta.IsNonIncreasing([]int{2, 1, 1})\n\ta.IsNonIncreasing([]float{2, 1})\n\ta.IsNonIncreasing([]string{\"b\", \"a\"})\n\n```go\nfunc (a *Assertions) IsNonIncreasingf(object interface{}, msg string, args ...interface{})\n```\nIsNonIncreasingf asserts that the collection is not increasing\n\n\ta.IsNonIncreasingf([]int{2, 1, 1}, \"error message %s\", \"formatted\")\n\ta.IsNonIncreasingf([]float{2, 1}, \"error message %s\", \"formatted\")\n\ta.IsNonIncreasingf([]string{\"b\", \"a\"}, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{})\n```\nIsType asserts that the specified objects are of the same type.\n\n```go\nfunc (a *Assertions) IsTypef(expectedType interface{}, object interface{}, msg string, args ...interface{})\n```\nIsTypef asserts that the specified objects are of the same type.\n\n```go\nfunc (a *Assertions) JSONEq(expected string, actual string, msgAndArgs ...interface{})\n```\nJSONEq asserts that two JSON strings are equivalent.\n\n\ta.JSONEq(`{\"hello\": \"world\", \"foo\": \"bar\"}`, `{\"foo\": \"bar\", \"hello\": \"world\"}`)\n\n```go\nfunc (a *Assertions) JSONEqf(expected string, actual string, msg string, args ...interface{})\n```\nJSONEqf asserts that two JSON strings are equivalent.\n\n\ta.JSONEqf(`{\"hello\": \"world\", \"foo\": \"bar\"}`, `{\"foo\": \"bar\", \"hello\": \"world\"}`, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{})\n```\nLen asserts that the specified object has specific length. Len also fails if the object has a type that len() not accept.\n\n\ta.Len(mySlice, 3)\n\n```go\nfunc (a *Assertions) Lenf(object interface{}, length int, msg string, args ...interface{})\n```\nLenf asserts that the specified object has specific length. Lenf also fails if the object has a type that len() not accept.\n\n\ta.Lenf(mySlice, 3, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Less(e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nLess asserts that the first element is less than the second\n\n\ta.Less(1, 2)\n\ta.Less(float64(1), float64(2))\n\ta.Less(\"a\", \"b\")\n\n```go\nfunc (a *Assertions) LessOrEqual(e1 interface{}, e2 interface{}, msgAndArgs ...interface{})\n```\nLessOrEqual asserts that the first element is less than or equal to the second\n\n\ta.LessOrEqual(1, 2)\n\ta.LessOrEqual(2, 2)\n\ta.LessOrEqual(\"a\", \"b\")\n\ta.LessOrEqual(\"b\", \"b\")\n\n```go\nfunc (a *Assertions) LessOrEqualf(e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nLessOrEqualf asserts that the first element is less than or equal to the second\n\n\ta.LessOrEqualf(1, 2, \"error message %s\", \"formatted\")\n\ta.LessOrEqualf(2, 2, \"error message %s\", \"formatted\")\n\ta.LessOrEqualf(\"a\", \"b\", \"error message %s\", \"formatted\")\n\ta.LessOrEqualf(\"b\", \"b\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Lessf(e1 interface{}, e2 interface{}, msg string, args ...interface{})\n```\nLessf asserts that the first element is less than the second\n\n\ta.Lessf(1, 2, \"error message %s\", \"formatted\")\n\ta.Lessf(float64(1), float64(2), \"error message %s\", \"formatted\")\n\ta.Lessf(\"a\", \"b\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Negative(e interface{}, msgAndArgs ...interface{})\n```\nNegative asserts that the specified element is negative\n\n\ta.Negative(-1)\n\ta.Negative(-1.23)\n\n```go\nfunc (a *Assertions) Negativef(e interface{}, msg string, args ...interface{})\n```\nNegativef asserts that the specified element is negative\n\n\ta.Negativef(-1, \"error message %s\", \"formatted\")\n\ta.Negativef(-1.23, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Never(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})\n```\nNever asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick.\n\n\ta.Never(func() bool { return false; }, time.Second, 10*time.Millisecond)\n\n```go\nfunc (a *Assertions) Neverf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})\n```\nNeverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick.\n\n\ta.Neverf(func() bool { return false; }, time.Second, 10*time.Millisecond, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Nil(object interface{}, msgAndArgs ...interface{})\n```\nNil asserts that the specified object is nil.\n\n\ta.Nil(err)\n\n```go\nfunc (a *Assertions) Nilf(object interface{}, msg string, args ...interface{})\n```\nNilf asserts that the specified object is nil.\n\n\ta.Nilf(err, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NoDirExists(path string, msgAndArgs ...interface{})\n```\nNoDirExists checks whether a directory does not exist in the given path. It fails if the path points to an existing \\_directory\\_ only.\n\n```go\nfunc (a *Assertions) NoDirExistsf(path string, msg string, args ...interface{})\n```\nNoDirExistsf checks whether a directory does not exist in the given path. It fails if the path points to an existing \\_directory\\_ only.\n\n```go\nfunc (a *Assertions) NoError(err error, msgAndArgs ...interface{})\n```\nNoError asserts that a function returned no error (i.e. \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if a.NoError(err) {\n\t\t   assert.Equal(t, expectedObj, actualObj)\n\t  }\n\n```go\nfunc (a *Assertions) NoErrorf(err error, msg string, args ...interface{})\n```\nNoErrorf asserts that a function returned no error (i.e. \\`nil\\`).\n\n\t  actualObj, err := SomeFunction()\n\t  if a.NoErrorf(err, \"error message %s\", \"formatted\") {\n\t\t   assert.Equal(t, expectedObj, actualObj)\n\t  }\n\n```go\nfunc (a *Assertions) NoFileExists(path string, msgAndArgs ...interface{})\n```\nNoFileExists checks whether a file does not exist in a given path. It fails if the path points to an existing \\_file\\_ only.\n\n```go\nfunc (a *Assertions) NoFileExistsf(path string, msg string, args ...interface{})\n```\nNoFileExistsf checks whether a file does not exist in a given path. It fails if the path points to an existing \\_file\\_ only.\n\n```go\nfunc (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{})\n```\nNotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element.\n\n\ta.NotContains(\"Hello World\", \"Earth\")\n\ta.NotContains([\"Hello\", \"World\"], \"Earth\")\n\ta.NotContains({\"Hello\": \"World\"}, \"Earth\")\n\n```go\nfunc (a *Assertions) NotContainsf(s interface{}, contains interface{}, msg string, args ...interface{})\n```\nNotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element.\n\n\ta.NotContainsf(\"Hello World\", \"Earth\", \"error message %s\", \"formatted\")\n\ta.NotContainsf([\"Hello\", \"World\"], \"Earth\", \"error message %s\", \"formatted\")\n\ta.NotContainsf({\"Hello\": \"World\"}, \"Earth\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{})\n```\nNotEmpty asserts that the specified object is NOT empty.  I.e. not nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\tif a.NotEmpty(obj) {\n\t  assert.Equal(t, \"two\", obj[1])\n\t}\n\n```go\nfunc (a *Assertions) NotEmptyf(object interface{}, msg string, args ...interface{})\n```\nNotEmptyf asserts that the specified object is NOT empty.  I.e. not nil, \"\", false, 0 or either a slice or a channel with len == 0.\n\n\tif a.NotEmptyf(obj, \"error message %s\", \"formatted\") {\n\t  assert.Equal(t, \"two\", obj[1])\n\t}\n\n```go\nfunc (a *Assertions) NotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nNotEqual asserts that the specified values are NOT equal.\n\n\ta.NotEqual(obj1, obj2)\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses).\n\n```go\nfunc (a *Assertions) NotEqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nNotEqualValues asserts that two objects are not equal even when converted to the same type\n\n\ta.NotEqualValues(obj1, obj2)\n\n```go\nfunc (a *Assertions) NotEqualValuesf(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nNotEqualValuesf asserts that two objects are not equal even when converted to the same type\n\n\ta.NotEqualValuesf(obj1, obj2, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotEqualf(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nNotEqualf asserts that the specified values are NOT equal.\n\n\ta.NotEqualf(obj1, obj2, \"error message %s\", \"formatted\")\n\nPointer variable equality is determined based on the equality of the referenced values (as opposed to the memory addresses).\n\n```go\nfunc (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface{})\n```\nNotErrorIs asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc (a *Assertions) NotErrorIsf(err error, target error, msg string, args ...interface{})\n```\nNotErrorIsf asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.\n\n```go\nfunc (a *Assertions) NotImplements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})\n```\nNotImplements asserts that an object does not implement the specified interface.\n\n\ta.NotImplements((*MyInterface)(nil), new(MyObject))\n\n```go\nfunc (a *Assertions) NotImplementsf(interfaceObject interface{}, object interface{}, msg string, args ...interface{})\n```\nNotImplementsf asserts that an object does not implement the specified interface.\n\n\ta.NotImplementsf((*MyInterface)(nil), new(MyObject), \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{})\n```\nNotNil asserts that the specified object is not nil.\n\n\ta.NotNil(err)\n\n```go\nfunc (a *Assertions) NotNilf(object interface{}, msg string, args ...interface{})\n```\nNotNilf asserts that the specified object is not nil.\n\n\ta.NotNilf(err, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotPanics(f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nNotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.\n\n\ta.NotPanics(func(){ RemainCalm() })\n\n```go\nfunc (a *Assertions) NotPanicsf(f assert.PanicTestFunc, msg string, args ...interface{})\n```\nNotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic.\n\n\ta.NotPanicsf(func(){ RemainCalm() }, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{})\n```\nNotRegexp asserts that a specified regexp does not match a string.\n\n\ta.NotRegexp(regexp.MustCompile(\"starts\"), \"it's starting\")\n\ta.NotRegexp(\"^start\", \"it's not starting\")\n\n```go\nfunc (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, args ...interface{})\n```\nNotRegexpf asserts that a specified regexp does not match a string.\n\n\ta.NotRegexpf(regexp.MustCompile(\"starts\"), \"it's starting\", \"error message %s\", \"formatted\")\n\ta.NotRegexpf(\"^start\", \"it's not starting\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotSame(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nNotSame asserts that two pointers do not reference the same object.\n\n\ta.NotSame(ptr1, ptr2)\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc (a *Assertions) NotSamef(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nNotSamef asserts that two pointers do not reference the same object.\n\n\ta.NotSamef(ptr1, ptr2, \"error message %s\", \"formatted\")\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc (a *Assertions) NotSubset(list interface{}, subset interface{}, msgAndArgs ...interface{})\n```\nNotSubset asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or map.\n\n\ta.NotSubset([1, 3, 4], [1, 2])\n\ta.NotSubset({\"x\": 1, \"y\": 2}, {\"z\": 3})\n\n```go\nfunc (a *Assertions) NotSubsetf(list interface{}, subset interface{}, msg string, args ...interface{})\n```\nNotSubsetf asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or map.\n\n\ta.NotSubsetf([1, 3, 4], [1, 2], \"error message %s\", \"formatted\")\n\ta.NotSubsetf({\"x\": 1, \"y\": 2}, {\"z\": 3}, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{})\n```\nNotZero asserts that i is not the zero value for its type.\n\n```go\nfunc (a *Assertions) NotZerof(i interface{}, msg string, args ...interface{})\n```\nNotZerof asserts that i is not the zero value for its type.\n\n```go\nfunc (a *Assertions) Panics(f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nPanics asserts that the code inside the specified PanicTestFunc panics.\n\n\ta.Panics(func(){ GoCrazy() })\n\n```go\nfunc (a *Assertions) PanicsWithError(errString string, f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nPanicsWithError asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the EqualError comparison.\n\n\ta.PanicsWithError(\"crazy error\", func(){ GoCrazy() })\n\n```go\nfunc (a *Assertions) PanicsWithErrorf(errString string, f assert.PanicTestFunc, msg string, args ...interface{})\n```\nPanicsWithErrorf asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the EqualError comparison.\n\n\ta.PanicsWithErrorf(\"crazy error\", func(){ GoCrazy() }, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) PanicsWithValue(expected interface{}, f assert.PanicTestFunc, msgAndArgs ...interface{})\n```\nPanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.\n\n\ta.PanicsWithValue(\"crazy error\", func(){ GoCrazy() })\n\n```go\nfunc (a *Assertions) PanicsWithValuef(expected interface{}, f assert.PanicTestFunc, msg string, args ...interface{})\n```\nPanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.\n\n\ta.PanicsWithValuef(\"crazy error\", func(){ GoCrazy() }, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Panicsf(f assert.PanicTestFunc, msg string, args ...interface{})\n```\nPanicsf asserts that the code inside the specified PanicTestFunc panics.\n\n\ta.Panicsf(func(){ GoCrazy() }, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Positive(e interface{}, msgAndArgs ...interface{})\n```\nPositive asserts that the specified element is positive\n\n\ta.Positive(1)\n\ta.Positive(1.23)\n\n```go\nfunc (a *Assertions) Positivef(e interface{}, msg string, args ...interface{})\n```\nPositivef asserts that the specified element is positive\n\n\ta.Positivef(1, \"error message %s\", \"formatted\")\n\ta.Positivef(1.23, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{})\n```\nRegexp asserts that a specified regexp matches a string.\n\n\ta.Regexp(regexp.MustCompile(\"start\"), \"it's starting\")\n\ta.Regexp(\"start...$\", \"it's not starting\")\n\n```go\nfunc (a *Assertions) Regexpf(rx interface{}, str interface{}, msg string, args ...interface{})\n```\nRegexpf asserts that a specified regexp matches a string.\n\n\ta.Regexpf(regexp.MustCompile(\"start\"), \"it's starting\", \"error message %s\", \"formatted\")\n\ta.Regexpf(\"start...$\", \"it's not starting\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Same(expected interface{}, actual interface{}, msgAndArgs ...interface{})\n```\nSame asserts that two pointers reference the same object.\n\n\ta.Same(ptr1, ptr2)\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc (a *Assertions) Samef(expected interface{}, actual interface{}, msg string, args ...interface{})\n```\nSamef asserts that two pointers reference the same object.\n\n\ta.Samef(ptr1, ptr2, \"error message %s\", \"formatted\")\n\nBoth arguments must be pointer variables. Pointer variable sameness is determined based on the equality of both type and value.\n\n```go\nfunc (a *Assertions) Subset(list interface{}, subset interface{}, msgAndArgs ...interface{})\n```\nSubset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map.\n\n\ta.Subset([1, 2, 3], [1, 2])\n\ta.Subset({\"x\": 1, \"y\": 2}, {\"x\": 1})\n\n```go\nfunc (a *Assertions) Subsetf(list interface{}, subset interface{}, msg string, args ...interface{})\n```\nSubsetf asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map.\n\n\ta.Subsetf([1, 2, 3], [1, 2], \"error message %s\", \"formatted\")\n\ta.Subsetf({\"x\": 1, \"y\": 2}, {\"x\": 1}, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) True(value bool, msgAndArgs ...interface{})\n```\nTrue asserts that the specified value is true.\n\n\ta.True(myBool)\n\n```go\nfunc (a *Assertions) Truef(value bool, msg string, args ...interface{})\n```\nTruef asserts that the specified value is true.\n\n\ta.Truef(myBool, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) WithinDuration(expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{})\n```\nWithinDuration asserts that the two times are within duration delta of each other.\n\n\ta.WithinDuration(time.Now(), time.Now(), 10*time.Second)\n\n```go\nfunc (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{})\n```\nWithinDurationf asserts that the two times are within duration delta of each other.\n\n\ta.WithinDurationf(time.Now(), time.Now(), 10*time.Second, \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) WithinRange(actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{})\n```\nWithinRange asserts that a time is within a time range (inclusive).\n\n\ta.WithinRange(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second))\n\n```go\nfunc (a *Assertions) WithinRangef(actual time.Time, start time.Time, end time.Time, msg string, args ...interface{})\n```\nWithinRangef asserts that a time is within a time range (inclusive).\n\n\ta.WithinRangef(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{})\n```\nZero asserts that i is the zero value for its type.\n\n```go\nfunc (a *Assertions) Zerof(i interface{}, msg string, args ...interface{})\n```\nZerof asserts that i is the zero value for its type.\n\n```go\ntype BoolAssertionFunc func(TestingT, bool, ...interface{})\n```\nBoolAssertionFunc is a common function prototype when validating a bool value.  Can be useful for table driven tests.\n\n```go\ntype ComparisonAssertionFunc func(TestingT, interface{}, interface{}, ...interface{})\n```\nComparisonAssertionFunc is a common function prototype when comparing two values.  Can be useful for table driven tests.\n\n```go\ntype ErrorAssertionFunc func(TestingT, error, ...interface{})\n```\nErrorAssertionFunc is a common function prototype when validating an error value.  Can be useful for table driven tests.\n\n```go\ntype TestingT interface {\n\tErrorf(format string, args ...interface{})\n\tFailNow()\n}\n```\nTestingT is an interface wrapper around \\*testing.T\n\n```go\ntype ValueAssertionFunc func(TestingT, interface{}, ...interface{})\n```\nValueAssertionFunc is a common function prototype when validating a single value.  Can be useful for table driven tests.\n\n","path":"github.com/expr-lang/expr/internal/testify/require","name":"require","synopsis":"Package require implements the same assertions as the `assert` package but stops test execution when a test fails.","isRedistributable":true}
