Commit 48c03e87 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b9869658
...@@ -107,8 +107,6 @@ type Package struct { ...@@ -107,8 +107,6 @@ type Package struct {
traceChecker *types.Checker // to typecheck ^^^ traceChecker *types.Checker // to typecheck ^^^
tracePkg *types.Package // original package augmented with ^^^ tracePkg *types.Package // original package augmented with ^^^
traceTypeInfo *types.Info // typeinfo for ^^^ traceTypeInfo *types.Info // typeinfo for ^^^
// XXX tests + xtests
} }
...@@ -700,16 +698,16 @@ func tracegen(pkgpath string, ctxt *build.Context, cwd string) error { ...@@ -700,16 +698,16 @@ func tracegen(pkgpath string, ctxt *build.Context, cwd string) error {
err1 := tracegen1(P, tpkg, pkgdir, "") err1 := tracegen1(P, tpkg, pkgdir, "")
err2 := tracegen1(P, testTpkg, pkgdir, "_test") err2 := tracegen1(P, testTpkg, pkgdir, "_test")
var err3 error xtestTpkg := &Package{} // dummy package with empty .Eventv & .Importv
if xtestPkgi != nil { if xtestPkgi != nil {
xtestTpkg, err := packageTrace(lprog, xtestPkgi) xtestTpkg, err = packageTrace(lprog, xtestPkgi)
if err != nil { if err != nil {
return err // XXX err ctx return err // XXX err ctx
} }
err3 = tracegen1(P, xtestTpkg, pkgdir, "_x_test")
} }
err3 := tracegen1(P, xtestTpkg, pkgdir, "_x_test")
return xerr.Merge(err1, err2, err3) return xerr.Merge(err1, err2, err3)
// return xerr.First(err1, err2, err3) // return xerr.First(err1, err2, err3)
} }
......
...@@ -137,8 +137,8 @@ func TestGoTraceGen(t *testing.T) { ...@@ -137,8 +137,8 @@ func TestGoTraceGen(t *testing.T) {
} }
// XXX autodetect (go list ?) // XXX autodetect (go list ?)
//testv := []string{"a/pkg1", "b/pkg2", "c/pkg3", "d/pkg4"} testv := []string{"a/pkg1", "b/pkg2", "c/pkg3", "d/pkg4"}
testv := []string{"c/pkg3"} //testv := []string{"c/pkg3"}
for _, tpkg := range testv { for _, tpkg := range testv {
err = tracegen(tpkg, tBuildCtx, "" /* = local imorts disabled */) err = tracegen(tpkg, tBuildCtx, "" /* = local imorts disabled */)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment