{"modulePath":"github.com/tooolbox/errors","version":"v1.2.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testutils\n\n## Types\n\n```go\ntype T struct {\n\t*testing.T\n}\n```\nT is a wrapper around testing.T which provides additional methods defined in this package. See below for details.\n\n```go\nfunc (t *T) Assert(cond bool)\n```\nAssert calls t.Fatal if the condition is false. Also the text of the assertion is printed.\n\n```go\nfunc (t *T) AssertDeepEqual(val, ref interface{})\n```\nAssertDeepEqual asserts that the value is equal to some reference.\n\n```go\nfunc (t *T) AssertEqual(val, ref interface{})\n```\nAssertEqual asserts that the value is equal to some reference.\n\n```go\nfunc (t *T) Check(cond bool)\n```\nCheck calls t.Error if the condition is false. Also the text of the condition is printed.\n\n```go\nfunc (t *T) CheckDeepEqual(val, ref interface{})\n```\nCheckDeepEqual checks that the value is equal to some reference.\n\n```go\nfunc (t *T) CheckEqual(val, ref interface{})\n```\nCheckEqual checks that the value is equal to some reference.\n\n```go\nfunc (t *T) CheckRegexpEqual(val, regexs string)\n```\nCheckRegexpEqual checks that the value is matched by some regular expression.\n\n```go\nfunc (t *T) Run(testName string, testFn func(t T))\n```\nRun runs the specified sub-test and passes it a T instance from this package.\n\n","path":"github.com/tooolbox/errors/testutils","name":"testutils","synopsis":"","isRedistributable":true}
