{"modulePath":"github.com/hack-pad/hackpadfs","version":"v0.2.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package assert\n\nPackage assert contains common assertions on builtin types.\n\n## Functions\n\n```go\nfunc Contains(tb testing.TB, collection, item interface{}) bool\n```\nContains asserts item is contained by collection\n\n```go\nfunc Equal(tb testing.TB, expected, actual interface{}, args ...interface{}) bool\n```\nEqual asserts actual is equal to expected\n\n```go\nfunc Error(tb testing.TB, err error) bool\n```\nError asserts err is not nil\n\n```go\nfunc ErrorIs(tb testing.TB, target, err error) bool\n```\nErrorIs asserts 'err' matches the expected 'target'. Uses errors.Is().\n\n```go\nfunc Eventually(tb testing.TB, fn func(context.Context) bool, totalWait time.Duration, checkInterval time.Duration) bool\n```\nEventually asserts fn() returns true within totalWait time, checking at the given interval\n\n```go\nfunc IsType(tb testing.TB, expected, actual interface{}) bool\n```\nIsType asserts both value's types are equal\n\n```go\nfunc NoError(tb testing.TB, err error, args ...interface{}) bool\n```\nNoError asserts err is nil\n\n```go\nfunc NotContains(tb testing.TB, collection, item interface{}) bool\n```\nNotContains asserts item is not contained by collection\n\n```go\nfunc NotEqual(tb testing.TB, expected, actual interface{}, args ...interface{}) bool\n```\nNotEqual asserts actual is not equal to expected\n\n```go\nfunc NotPanics(tb testing.TB, fn func()) bool\n```\nNotPanics asserts fn() does not panic\n\n```go\nfunc NotZero(tb testing.TB, value interface{}) bool\n```\nNotZero asserts value is not the zero value\n\n```go\nfunc Panics(tb testing.TB, fn func()) (panicked bool)\n```\nPanics asserts fn() panics\n\n```go\nfunc Prefix(tb testing.TB, expected, actual string) bool\n```\nPrefix asserts actual starts with expected\n\n```go\nfunc Subset(tb testing.TB, sub, super interface{}) bool\n```\nSubset asserts 'sub' is a subset of 'super'\n\n```go\nfunc Suffix(tb testing.TB, expected, actual string) bool\n```\nSuffix asserts actual ends with expected\n\n```go\nfunc Zero(tb testing.TB, value interface{}) bool\n```\nZero asserts value is the zero value\n\n","path":"github.com/hack-pad/hackpadfs/internal/assert","name":"assert","synopsis":"Package assert contains common assertions on builtin types.","isRedistributable":true}
