MCPcopy
hub / github.com/NVIDIA/aistore / printStack

Function printStack

devtools/tassert/tassert.go:92–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92func printStack() {
93 var buffer bytes.Buffer
94 fmt.Fprintln(os.Stderr, " tassert.printStack:")
95 for i := 1; i < 9; i++ {
96 _, file, line, ok := runtime.Caller(i)
97 if !ok {
98 break
99 }
100 i := strings.Index(file, "aistore")
101 if i < 0 {
102 break
103 }
104 if strings.Contains(file, "tassert") {
105 continue
106 }
107 fmt.Fprintf(&buffer, "\t%s:%d\n", file[i+8:], line)
108 }
109 os.Stderr.Write(buffer.Bytes())
110}

Callers 4

CheckFatalFunction · 0.85
CheckErrorFunction · 0.85
FatalfFunction · 0.85
ErrorfFunction · 0.85

Calls 3

ContainsMethod · 0.45
WriteMethod · 0.45
BytesMethod · 0.45

Tested by

no test coverage detected