MCPcopy Create free account
hub / github.com/chain/txvm / Helper

Function Helper

log/stack.go:18–24  ·  view source on GitHub ↗

Helper marks the calling function as a log helper function. When logging file and line information, that function will be skipped. Helper may be called simultaneously from multiple goroutines.

()

Source from the content-addressed store, hash-verified

16// When logging file and line information, that function will be skipped.
17// Helper may be called simultaneously from multiple goroutines.
18func Helper() {
19 name := callerName(1)
20 if name == "" || isHelper(name) {
21 return
22 }
23 markHelper(name)
24}
25
26func isHelper(name string) bool {
27 helperMu.RLock()

Callers 5

PrintkvFunction · 0.85
FatalkvFunction · 0.85
PrintfFunction · 0.85
ErrorFunction · 0.85
RecoverAndLogErrorFunction · 0.85

Calls 3

callerNameFunction · 0.85
isHelperFunction · 0.85
markHelperFunction · 0.85

Tested by

no test coverage detected