MCPcopy
hub / github.com/CodisLabs/codis / Must

Function Must

pkg/utils/assert/assert.go:8–13  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

6import "github.com/CodisLabs/codis/pkg/utils/log"
7
8func Must(b bool) {
9 if b {
10 return
11 }
12 log.Panic("assertion failed")
13}
14
15func MustNoError(err error) {
16 if err == nil {

Callers

nothing calls this directly

Calls 1

PanicMethod · 0.80

Tested by

no test coverage detected