{"modulePath":"github.com/aws/aws-lambda-runtime-interface-emulator","version":"v0.0.0-20261030222936-bef5c4ba774d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package invariant\n\n## Functions\n\n```go\nfunc Check(cond bool, statement string)\n```\n\n```go\nfunc Checkf(cond bool, format string, args ...any)\n```\n\n```go\nfunc SetViolationExecutor(exector ViolationExecutor)\n```\n\n```go\nfunc Violate(statement string)\n```\n\n```go\nfunc Violatef(format string, args ...any)\n```\n\n## Types\n\n```go\ntype MockViolationExecutor struct {\n\tmock.Mock\n}\n```\n\n```go\nfunc NewMockViolationExecutor(t interface {\n\tmock.TestingT\n\tCleanup(func())\n}) *MockViolationExecutor\n```\n\n```go\nfunc (_m *MockViolationExecutor) Exec(_a0 ViolationError)\n```\n\n```go\ntype PanicViolationExecutor struct{}\n```\n\n```go\nfunc NewPanicViolationExecuter() *PanicViolationExecutor\n```\n\n```go\nfunc (executor *PanicViolationExecutor) Exec(err ViolationError)\n```\n\n```go\ntype ViolationError struct {\n\tStatement string\n}\n```\n\n```go\nfunc (err ViolationError) Error() string\n```\n\n```go\ntype ViolationExecutor interface {\n\tExec(ViolationError)\n}\n```\n\n","path":"github.com/aws/aws-lambda-runtime-interface-emulator/internal/lambda-managed-instances/utils/invariant","name":"invariant","synopsis":"","isRedistributable":true}
