1// +build !appengine
2
3package internal
4
5import (
6	"go/build"
7	"path/filepath"
8	"testing"
9)
10
11func TestFindMainPath(t *testing.T) {
12	// Tests won't have package main, instead they have testing.tRunner
13	want := filepath.Join(build.Default.GOROOT, "src", "testing", "testing.go")
14	got := findMainPath()
15	if want != got {
16		t.Errorf("findMainPath: want %s, got %s", want, got)
17	}
18}
19