diff options
Diffstat (limited to 'libgo/go/testing/internal/testdeps')
-rw-r--r-- | libgo/go/testing/internal/testdeps/deps.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/go/testing/internal/testdeps/deps.go b/libgo/go/testing/internal/testdeps/deps.go index b08300b..042f696 100644 --- a/libgo/go/testing/internal/testdeps/deps.go +++ b/libgo/go/testing/internal/testdeps/deps.go @@ -49,3 +49,10 @@ func (TestDeps) WriteHeapProfile(w io.Writer) error { func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error { return pprof.Lookup(name).WriteTo(w, debug) } + +// ImportPath is the import path of the testing binary, set by the generated main function. +var ImportPath string + +func (TestDeps) ImportPath() string { + return ImportPath +} |