MCPcopy Create free account
hub / github.com/golang/appengine / TestFindMainPath

Function TestFindMainPath

internal/main_test.go:12–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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}

Callers

nothing calls this directly

Calls 1

findMainPathFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…