{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errorsxtest\n\nPackage errorsxtest helps tests check the origin stack that Sentry records for an error.\n\n## Functions\n\n```go\nfunc ErrorExceptions(err error) []sentry.Exception\n```\nErrorExceptions returns the exceptions that Sentry records for err.\n\n```go\nfunc ErrorOriginFunction(err error) string\n```\nErrorOriginFunction returns OriginFunction of the exceptions that Sentry records for err.\n\n```go\nfunc OriginFunction(exceptions []sentry.Exception) string\n```\nOriginFunction returns the innermost function of OriginStack, or \"\".\n\n```go\nfunc OriginStack(exceptions []sentry.Exception) []string\n```\nOriginStack returns the functions of the first stack in exceptions, innermost first. sentry-go orders exceptions root-first, so an origin stack comes before the stack of the capture site. It returns nil when no exception has a stack.\n\n","path":"github.com/chainloop-dev/chainloop/pkg/errorsx/errorsxtest","name":"errorsxtest","synopsis":"Package errorsxtest helps tests check the origin stack that Sentry records for an error.","isRedistributable":true}
