Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(143)

Unified Diff: oracle/testdata/src/main/calls-json.go

Issue 13270045: code review 13270045: go.tools/oracle: add option to output results in JSON s... (Closed)
Patch Set: diff -r 07183b5c385c https://code.google.com/p/go.tools Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « oracle/testdata/src/main/calls.golden ('k') | oracle/testdata/src/main/calls-json.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: oracle/testdata/src/main/calls-json.go
===================================================================
new file mode 100644
--- /dev/null
+++ b/oracle/testdata/src/main/calls-json.go
@@ -0,0 +1,16 @@
+package main
+
+// Tests of call-graph queries, -format=json.
+// See go.tools/oracle/oracle_test.go for explanation.
+// See calls-json.golden for expected query results.
+
+func call(f func()) {
+ f() // @callees @callees-f "f"
+}
+
+func main() {
+ call(func() {
+ // @callers callers-main.anon "^"
+ // @callstack callstack-main.anon "^"
+ })
+}
« no previous file with comments | « oracle/testdata/src/main/calls.golden ('k') | oracle/testdata/src/main/calls-json.golden » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b