{"modulePath":"github.com/3dsinteractive/testify","version":"v1.6.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package assert\n\nPackage assert provides a set of comprehensive testing tools for use with the normal Go testing system.\n\n### Example Usage {#hdr-Example_Usage}\n\nThe following is a complete example using assert in a standard test function:\n\n\timport (\n\t  \"testing\"\n\t  \"github.com/stretchr/testify/assert\"\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  assert.Equal(t, a, b, \"The two words should be the same.\")\n\n\t}\n\nif you assert many times, use the format below:\n\n\timport (\n\t  \"testing\"\n\t  \"github.com/stretchr/testify/assert\"\n\t)\n\n\tfunc TestSomething(t *testing.T) {\n\t  assert := assert.New(t)\n\n\t  var a string = \"Hello\"\n\t  var b string = \"Hello\"\n\n\t  assert.Equal(a, b, \"The two words should be the same.\")\n\t}\n\n### Assertions {#hdr-Assertions}\n\nAssertions allow you to easily write test code, and are global funcs in the \\`assert\\` package. All assertion functions take, as the first argument, the \\`\\*testing.T\\` object provided by the testing framework. This allows the assertion funcs to write the failings and other details to the correct place.\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## Variables\n\n```go\nvar AnError = errors.New(\"assert.AnError general error for testing\")\n```\nAnError is an error instance useful for testing.  If the code does not care about error specifics, and only needs to return the error for example, this error should be used to make the test code more readable.\n\n## Functions\n\n```go\nfunc CallerInfo() []string\n```\nCallerInfo returns an array of strings containing the file and line number of each stack frame leading from the current test to the assert call that failed.\n\n```go\nfunc Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool\n```\nCondition uses a Comparison to assert a complex condition.\n\n```go\nfunc Conditionf(t TestingT, comp Comparison, msg string, args ...interface{}) bool\n```\nConditionf uses a Comparison to assert a complex condition.\n\n```go\nfunc Contains(t TestingT, s, contains interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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, listB interface{}, msgAndArgs ...interface{}) (ok bool)\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{}) bool\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{}) bool\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{}) bool\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, actual interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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 EqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool\n```\nEqualValues asserts that two objects are equal or convertable 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{}) bool\n```\nEqualValuesf asserts that two objects are equal or convertable 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{}) bool\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{}) bool\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 Errorf(t TestingT, err error, msg string, args ...interface{}) bool\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{}) bool\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 Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool\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, actual interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\n```\nFail reports a failure through\n\n```go\nfunc FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) bool\n```\nFailNow fails test\n\n```go\nfunc FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) bool\n```\nFailNowf fails test\n\n```go\nfunc Failf(t TestingT, failureMessage string, msg string, args ...interface{}) bool\n```\nFailf reports a failure through\n\n```go\nfunc False(t TestingT, value bool, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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 HTTPBody(handler http.HandlerFunc, method, url string, values url.Values) string\n```\nHTTPBody is a helper that returns HTTP body of the response. It returns empty string if building a new request fails.\n\n```go\nfunc HTTPBodyContains(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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, url string, values url.Values, msgAndArgs ...interface{}) bool\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{}) bool\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, url string, values url.Values, msgAndArgs ...interface{}) bool\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{}) bool\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, url string, values url.Values, statuscode int, msgAndArgs ...interface{}) bool\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{}) bool\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, url string, values url.Values, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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, actual interface{}, delta float64, msgAndArgs ...interface{}) bool\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, actual interface{}, delta float64, msgAndArgs ...interface{}) bool\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{}) bool\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, actual interface{}, delta float64, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool\n```\nInEpsilon asserts that expected and actual have a relative error less than epsilon\n\n```go\nfunc InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\n```\nInEpsilonf asserts that expected and actual have a relative error less than epsilon\n\n```go\nfunc IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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 Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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, contains interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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, actual interface{}, msgAndArgs ...interface{}) bool\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, actual interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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 NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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 PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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{}) bool\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{}) bool\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, actual interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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, subset interface{}, msgAndArgs ...interface{}) (ok bool)\n```\nNotSubset asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...).\n\n\tassert.NotSubset(t, [1, 3, 4], [1, 2], \"But [1, 3, 4] does not contain [1, 2]\")\n\n```go\nfunc NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) bool\n```\nNotSubsetf asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...).\n\n\tassert.NotSubsetf(t, [1, 3, 4], [1, 2], \"But [1, 3, 4] does not contain [1, 2]\", \"error message %s\", \"formatted\")\n\n```go\nfunc NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool\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{}) bool\n```\nNotZerof asserts that i is not the zero value for its type.\n\n```go\nfunc ObjectsAreEqual(expected, actual interface{}) bool\n```\nObjectsAreEqual determines if two objects are considered equal.\n\nThis function does no assertion of any kind.\n\n```go\nfunc ObjectsAreEqualValues(expected, actual interface{}) bool\n```\nObjectsAreEqualValues gets whether two objects are equal, or if their values are equal.\n\n```go\nfunc Panics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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 PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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 Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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, actual interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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, subset interface{}, msgAndArgs ...interface{}) (ok bool)\n```\nSubset asserts that the specified list(array, slice...) contains all elements given in the specified subset(array, slice...).\n\n\tassert.Subset(t, [1, 2, 3], [1, 2], \"But [1, 2, 3] does contain [1, 2]\")\n\n```go\nfunc Subsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) bool\n```\nSubsetf asserts that the specified list(array, slice...) contains all elements given in the specified subset(array, slice...).\n\n\tassert.Subsetf(t, [1, 2, 3], [1, 2], \"But [1, 2, 3] does contain [1, 2]\", \"error message %s\", \"formatted\")\n\n```go\nfunc True(t TestingT, value bool, msgAndArgs ...interface{}) bool\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{}) bool\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, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) bool\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{}) bool\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 YAMLEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) bool\n```\nYAMLEq asserts that two YAML strings are equivalent.\n\n```go\nfunc YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool\n```\nYAMLEqf asserts that two YAML strings are equivalent.\n\n```go\nfunc Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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 Comparison, msgAndArgs ...interface{}) bool\n```\nCondition uses a Comparison to assert a complex condition.\n\n```go\nfunc (a *Assertions) Conditionf(comp Comparison, msg string, args ...interface{}) bool\n```\nConditionf uses a Comparison to assert a complex condition.\n\n```go\nfunc (a *Assertions) Contains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool\n```\nEqualValues asserts that two objects are equal or convertable 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{}) bool\n```\nEqualValuesf asserts that two objects are equal or convertable 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{}) bool\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{}) bool\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) Errorf(err error, msg string, args ...interface{}) bool\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{}) bool\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) Eventuallyf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\n```\nFail reports a failure through\n\n```go\nfunc (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{}) bool\n```\nFailNow fails test\n\n```go\nfunc (a *Assertions) FailNowf(failureMessage string, msg string, args ...interface{}) bool\n```\nFailNowf fails test\n\n```go\nfunc (a *Assertions) Failf(failureMessage string, msg string, args ...interface{}) bool\n```\nFailf reports a failure through\n\n```go\nfunc (a *Assertions) False(value bool, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\n```\nInEpsilonf asserts that expected and actual have a relative error less than epsilon\n\n```go\nfunc (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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) Never(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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) NotNil(object interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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 PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\n```\nNotSubset asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...).\n\n\ta.NotSubset([1, 3, 4], [1, 2], \"But [1, 3, 4] does not contain [1, 2]\")\n\n```go\nfunc (a *Assertions) NotSubsetf(list interface{}, subset interface{}, msg string, args ...interface{}) bool\n```\nNotSubsetf asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...).\n\n\ta.NotSubsetf([1, 3, 4], [1, 2], \"But [1, 3, 4] does not contain [1, 2]\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool\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{}) bool\n```\nNotZerof asserts that i is not the zero value for its type.\n\n```go\nfunc (a *Assertions) Panics(f PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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 PanicTestFunc, msgAndArgs ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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 PanicTestFunc, msg string, args ...interface{}) bool\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) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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{}) bool\n```\nSubset asserts that the specified list(array, slice...) contains all elements given in the specified subset(array, slice...).\n\n\ta.Subset([1, 2, 3], [1, 2], \"But [1, 2, 3] does contain [1, 2]\")\n\n```go\nfunc (a *Assertions) Subsetf(list interface{}, subset interface{}, msg string, args ...interface{}) bool\n```\nSubsetf asserts that the specified list(array, slice...) contains all elements given in the specified subset(array, slice...).\n\n\ta.Subsetf([1, 2, 3], [1, 2], \"But [1, 2, 3] does contain [1, 2]\", \"error message %s\", \"formatted\")\n\n```go\nfunc (a *Assertions) True(value bool, msgAndArgs ...interface{}) bool\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{}) bool\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{}) bool\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{}) bool\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) YAMLEq(expected string, actual string, msgAndArgs ...interface{}) bool\n```\nYAMLEq asserts that two YAML strings are equivalent.\n\n```go\nfunc (a *Assertions) YAMLEqf(expected string, actual string, msg string, args ...interface{}) bool\n```\nYAMLEqf asserts that two YAML strings are equivalent.\n\n```go\nfunc (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool\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{}) bool\n```\nZerof asserts that i is the zero value for its type.\n\n```go\ntype BoolAssertionFunc func(TestingT, bool, ...interface{}) bool\n```\nBoolAssertionFunc is a common function prototype when validating a bool value.  Can be useful for table driven tests.\n\n```go\ntype CompareType int\n```\n\n```go\ntype Comparison func() (success bool)\n```\nComparison is a custom function that returns true on success and false on failure\n\n```go\ntype ComparisonAssertionFunc func(TestingT, interface{}, interface{}, ...interface{}) bool\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{}) bool\n```\nErrorAssertionFunc is a common function prototype when validating an error value.  Can be useful for table driven tests.\n\n```go\ntype PanicTestFunc func()\n```\nPanicTestFunc defines a func that should be passed to the assert.Panics and assert.NotPanics methods, and represents a simple func that takes no arguments, and returns nothing.\n\n```go\ntype TestingT interface {\n\tErrorf(format string, args ...interface{})\n}\n```\nTestingT is an interface wrapper around \\*testing.T\n\n```go\ntype ValueAssertionFunc func(TestingT, interface{}, ...interface{}) bool\n```\nValueAssertionFunc is a common function prototype when validating a single value.  Can be useful for table driven tests.\n\n","path":"github.com/3dsinteractive/testify/assert","name":"assert","synopsis":"Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.","isRedistributable":true}
