File: main_test.go

package info (click to toggle)
golang-google-appengine 1.6.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,076 kB
  • sloc: sh: 43; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// +build !appengine

package internal

import (
	"go/build"
	"path/filepath"
	"testing"
)

func TestFindMainPath(t *testing.T) {
	// Tests won't have package main, instead they have testing.tRunner
	want := filepath.Join(build.Default.GOROOT, "src", "testing", "testing.go")
	got := findMainPath()
	if want != got {
		t.Errorf("findMainPath: want %s, got %s", want, got)
	}
}