Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
48c03e87
Commit
48c03e87
authored
Jul 04, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b9869658
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
go/xcommon/tracing/cmd/gotrace/gotrace.go
go/xcommon/tracing/cmd/gotrace/gotrace.go
+4
-6
go/xcommon/tracing/cmd/gotrace/gotrace_test.go
go/xcommon/tracing/cmd/gotrace/gotrace_test.go
+2
-2
No files found.
go/xcommon/tracing/cmd/gotrace/gotrace.go
View file @
48c03e87
...
@@ -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)
}
}
...
...
go/xcommon/tracing/cmd/gotrace/gotrace_test.go
View file @
48c03e87
...
@@ -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 */
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment