(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestFindMainPath(t *testing.T) { |
| 13 | // Tests won't have package main, instead they have testing.tRunner |
| 14 | want := filepath.Join(build.Default.GOROOT, "src", "testing", "testing.go") |
| 15 | got := findMainPath() |
| 16 | if want != got { |
| 17 | t.Errorf("findMainPath: want %s, got %s", want, got) |
| 18 | } |
| 19 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…