(f string, a Args, s string, l int)
| 385 | } |
| 386 | |
| 387 | func 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 | |
| 399 | func compareErr(t *testing.T, want, got error) { |
| 400 | if want == nil && got == nil { |
no test coverage detected
searching dependent graphs…