Verify performs verification if the assertions are enabled. In the default setup running in tests and skipped in the production code.
(f func())
| 54 | // Verify performs verification if the assertions are enabled. |
| 55 | // In the default setup running in tests and skipped in the production code. |
| 56 | func Verify(f func()) { |
| 57 | if IsVerificationEnabled(ENV_VERIFY_VALUE_ASSERT) { |
| 58 | f() |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // Assert will panic with a given formatted message if the given condition is false. |
| 63 | func Assert(condition bool, msg string, v ...any) { |
no test coverage detected