MCPcopy Index your code
hub / github.com/maruel/panicparse / newCallLocal

Function newCallLocal

stack/stack_test.go:387–397  ·  view source on GitHub ↗
(f string, a Args, s string, l int)

Source from the content-addressed store, hash-verified

385}
386
387func newCallLocal(f string, a Args, s string, l int) Call {
388 c := newCall(f, a, s, l)
389 r := c.updateLocations(goroot, goroot, gomods, gopaths)
390 if !r {
391 panic("Unexpected")
392 }
393 if c.LocalSrcPath == "" || c.RelSrcPath == "" {
394 panic(fmt.Sprintf("newCallLocal(%q, %q): invariant failed; gomods=%v, GOPATHs=%v", f, s, gomods, gopaths))
395 }
396 return c
397}
398
399func compareErr(t *testing.T, want, got error) {
400 if want == nil && got == nil {

Callers 8

testPanicArgsElidedFunction · 0.70
testPanicMismatchedFunction · 0.70
testPanicRaceFunction · 0.70
testPanicStrFunction · 0.70
testPanicUTF8Function · 0.70
TestGetSrcBranchURLFunction · 0.70

Calls 2

newCallFunction · 0.85
updateLocationsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…