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

Function Panic

extern/deprecated/redis-test/utils.go:579–594  ·  view source on GitHub ↗
(format string, args ...interface{})

Source from the content-addressed store, hash-verified

577}
578
579func Panic(format string, args ...interface{}) {
580 const tab = " "
581 var b bytes.Buffer
582 r, ss, _ := Trace()
583 fmt.Fprintf(&b, "[panic] ")
584 fmt.Fprintf(&b, format, args...)
585 fmt.Fprintf(&b, "\n"+tab+"%s\n", r)
586 for i := 0; i < len(ss); i++ {
587 for j := i % 2; j >= 0; j-- {
588 fmt.Fprintf(&b, tab)
589 }
590 fmt.Fprintf(&b, "%s\n", ss[i])
591 }
592 log.Printf("%s", b.String())
593 os.Exit(1)
594}
595
596type TestGroup struct {
597 sig chan int

Callers 15

playerMethod · 0.70
groupfetchMethod · 0.70
NewConnFunction · 0.70
DelSlotMethod · 0.70
SlotsInfoMethod · 0.70
MgrtSlotMethod · 0.70
MgrtTagSlotMethod · 0.70
HashKeyMethod · 0.70
SetMethod · 0.70
DelMethod · 0.70
MgrtMethod · 0.70
MgrtTagMethod · 0.70

Calls 3

TraceFunction · 0.70
PrintfMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected