{"modulePath":"github.com/objectundefined/cockroach","version":"v0.0.0-20160624191317-5695764788c5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testutils\n\n## Functions\n\n```go\nfunc Caller(depth ...int) string\n```\nCaller returns filename and line number info for the specified stack depths. The info is formated as \\\u003cfile\u003e:\\\u003cline\u003e and each entry is separated for a space.\n\n```go\nfunc IsError(err error, re string) bool\n```\nIsError returns true if err is non-nil and the error string matches the supplied regexp.\n\n```go\nfunc IsPError(pErr *roachpb.Error, re string) bool\n```\nIsPError returns true if pErr is non-nil and the error message matches the supplied regexp.\n\n```go\nfunc MakeCaller(depth ...int) func() string\n```\nMakeCaller returns a function which will invoke Caller with the specified arguments.\n\n```go\nfunc MakeKey(keys ...[]byte) []byte\n```\nMakeKey makes a new key which is the concatenation of the given inputs, in order.\n\n```go\nfunc NewNodeTestBaseContext() *base.Context\n```\nNewNodeTestBaseContext creates a base context for testing. This uses embedded certs and the default node user. The default node user has both server and client certificates.\n\n```go\nfunc NewTestBaseContext(user string) *base.Context\n```\nNewTestBaseContext creates a secure base context for user.\n\n```go\nfunc SortStructs(s interface{}, fieldName string)\n```\nSortStructs sorts the given slice of structs using the given field as the sort key.\n\n","path":"github.com/objectundefined/cockroach/testutils","name":"testutils","synopsis":"","isRedistributable":true}
