MCPcopy Create free account
hub / github.com/maruel/panicparse / formatCall

Method formatCall

internal/ui.go:52–67  ·  view source on GitHub ↗
(c *stack.Call)

Source from the content-addressed store, hash-verified

50)
51
52func (pf pathFormat) formatCall(c *stack.Call) string {
53 switch pf {
54 case relPath:
55 if c.RelSrcPath != "" {
56 return fmt.Sprintf("%s:%d", c.RelSrcPath, c.Line)
57 }
58 fallthrough
59 case fullPath:
60 if c.LocalSrcPath != "" {
61 return fmt.Sprintf("%s:%d", c.LocalSrcPath, c.Line)
62 }
63 return fmt.Sprintf("%s:%d", c.RemoteSrcPath, c.Line)
64 default:
65 return fmt.Sprintf("%s:%d", c.SrcName, c.Line)
66 }
67}
68
69func (pf pathFormat) createdByString(s *stack.Signature) string {
70 if len(s.CreatedBy.Calls) == 0 {

Callers 5

createdByStringMethod · 0.95
TestCalcBucketsLengthsFunction · 0.80
calcBucketsLengthsFunction · 0.80
calcGoroutinesLengthsFunction · 0.80
callLineMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestCalcBucketsLengthsFunction · 0.64