Skip to content

Commit

Permalink
outline: Report absolute offsets of spec/container start and end posi…
Browse files Browse the repository at this point in the history
…tions (#763)
  • Loading branch information
dlipovetsky authored Jan 19, 2021
1 parent 06744e8 commit 0c40583
Show file tree
Hide file tree
Showing 21 changed files with 197 additions and 128 deletions.
32 changes: 16 additions & 16 deletions ginkgo/outline/_testdata/alias_test.go.csv
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Name,Text,Start,End,Spec,Focused,Pending
Describe,NodotFixture,131,786,false,false,false
Describe,normal,176,309,false,false,false
It,normal,216,305,true,false,false
By,normal,251,273,false,false,false
By,normal,277,299,false,false,false
Context,normal,312,392,false,false,false
It,normal,351,388,true,false,false
When,normal,395,472,false,false,false
It,normal,431,468,true,false,false
It,normal,475,511,true,false,false
Specify,normal,514,555,true,false,false
Measure,normal,558,625,true,false,false
DescribeTable,normal,628,704,false,false,false
Entry,normal,676,700,true,false,false
DescribeTable,normal,707,783,false,false,false
Entry,normal,755,779,true,false,false
Describe,NodotFixture,130,785,false,false,false
Describe,normal,175,308,false,false,false
It,normal,215,304,true,false,false
By,normal,250,272,false,false,false
By,normal,276,298,false,false,false
Context,normal,311,391,false,false,false
It,normal,350,387,true,false,false
When,normal,394,471,false,false,false
It,normal,430,467,true,false,false
It,normal,474,510,true,false,false
Specify,normal,513,554,true,false,false
Measure,normal,557,624,true,false,false
DescribeTable,normal,627,703,false,false,false
Entry,normal,675,699,true,false,false
DescribeTable,normal,706,782,false,false,false
Entry,normal,754,778,true,false,false
2 changes: 1 addition & 1 deletion ginkgo/outline/_testdata/alias_test.go.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name":"Describe","text":"NodotFixture","start":131,"end":786,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"Describe","text":"normal","start":176,"end":309,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"normal","start":216,"end":305,"spec":true,"focused":false,"pending":false,"nodes":[{"name":"By","text":"normal","start":251,"end":273,"spec":false,"focused":false,"pending":false,"nodes":[]},{"name":"By","text":"normal","start":277,"end":299,"spec":false,"focused":false,"pending":false,"nodes":[]}]}]},{"name":"Context","text":"normal","start":312,"end":392,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"normal","start":351,"end":388,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"When","text":"normal","start":395,"end":472,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"normal","start":431,"end":468,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"It","text":"normal","start":475,"end":511,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"Specify","text":"normal","start":514,"end":555,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"Measure","text":"normal","start":558,"end":625,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"DescribeTable","text":"normal","start":628,"end":704,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"Entry","text":"normal","start":676,"end":700,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"DescribeTable","text":"normal","start":707,"end":783,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"Entry","text":"normal","start":755,"end":779,"spec":true,"focused":false,"pending":false,"nodes":[]}]}]}]
[{"name":"Describe","text":"NodotFixture","start":130,"end":785,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"Describe","text":"normal","start":175,"end":308,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"normal","start":215,"end":304,"spec":true,"focused":false,"pending":false,"nodes":[{"name":"By","text":"normal","start":250,"end":272,"spec":false,"focused":false,"pending":false,"nodes":[]},{"name":"By","text":"normal","start":276,"end":298,"spec":false,"focused":false,"pending":false,"nodes":[]}]}]},{"name":"Context","text":"normal","start":311,"end":391,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"normal","start":350,"end":387,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"When","text":"normal","start":394,"end":471,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"normal","start":430,"end":467,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"It","text":"normal","start":474,"end":510,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"Specify","text":"normal","start":513,"end":554,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"Measure","text":"normal","start":557,"end":624,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"DescribeTable","text":"normal","start":627,"end":703,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"Entry","text":"normal","start":675,"end":699,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"DescribeTable","text":"normal","start":706,"end":782,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"Entry","text":"normal","start":754,"end":778,"spec":true,"focused":false,"pending":false,"nodes":[]}]}]}]
32 changes: 16 additions & 16 deletions ginkgo/outline/_testdata/focused_test.go.csv
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Name,Text,Start,End,Spec,Focused,Pending
Describe,unfocused,116,624,false,false,false
FDescribe,focused,148,245,false,true,false
It,focused,180,241,true,true,false
By,focused,206,219,false,true,false
By,focused,223,236,false,true,false
FContext,focused,248,311,false,true,false
It,focused,279,307,true,true,false
FWhen,focused,314,374,false,true,false
It,focused,342,370,true,true,false
FIt,focused,377,405,true,true,false
FSpecify,focused,408,441,true,true,false
FMeasure,focused,444,493,true,true,false
FDescribeTable,focused,496,557,false,true,false
Entry,focused,537,553,true,true,false
DescribeTable,focused,560,621,false,false,false
FEntry,focused,600,617,true,true,false
Describe,unfocused,115,623,false,false,false
FDescribe,focused,147,244,false,true,false
It,focused,179,240,true,true,false
By,focused,205,218,false,true,false
By,focused,222,235,false,true,false
FContext,focused,247,310,false,true,false
It,focused,278,306,true,true,false
FWhen,focused,313,373,false,true,false
It,focused,341,369,true,true,false
FIt,focused,376,404,true,true,false
FSpecify,focused,407,440,true,true,false
FMeasure,focused,443,492,true,true,false
FDescribeTable,focused,495,556,false,true,false
Entry,focused,536,552,true,true,false
DescribeTable,focused,559,620,false,false,false
FEntry,focused,599,616,true,true,false
2 changes: 1 addition & 1 deletion ginkgo/outline/_testdata/focused_test.go.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name":"Describe","text":"unfocused","start":116,"end":624,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FDescribe","text":"focused","start":148,"end":245,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":180,"end":241,"spec":true,"focused":true,"pending":false,"nodes":[{"name":"By","text":"focused","start":206,"end":219,"spec":false,"focused":true,"pending":false,"nodes":[]},{"name":"By","text":"focused","start":223,"end":236,"spec":false,"focused":true,"pending":false,"nodes":[]}]}]},{"name":"FContext","text":"focused","start":248,"end":311,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":279,"end":307,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"FWhen","text":"focused","start":314,"end":374,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":342,"end":370,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"FIt","text":"focused","start":377,"end":405,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"FSpecify","text":"focused","start":408,"end":441,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"FMeasure","text":"focused","start":444,"end":493,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"FDescribeTable","text":"focused","start":496,"end":557,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"Entry","text":"focused","start":537,"end":553,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"DescribeTable","text":"focused","start":560,"end":621,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FEntry","text":"focused","start":600,"end":617,"spec":true,"focused":true,"pending":false,"nodes":[]}]}]}]
[{"name":"Describe","text":"unfocused","start":115,"end":623,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FDescribe","text":"focused","start":147,"end":244,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":179,"end":240,"spec":true,"focused":true,"pending":false,"nodes":[{"name":"By","text":"focused","start":205,"end":218,"spec":false,"focused":true,"pending":false,"nodes":[]},{"name":"By","text":"focused","start":222,"end":235,"spec":false,"focused":true,"pending":false,"nodes":[]}]}]},{"name":"FContext","text":"focused","start":247,"end":310,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":278,"end":306,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"FWhen","text":"focused","start":313,"end":373,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":341,"end":369,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"FIt","text":"focused","start":376,"end":404,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"FSpecify","text":"focused","start":407,"end":440,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"FMeasure","text":"focused","start":443,"end":492,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"FDescribeTable","text":"focused","start":495,"end":556,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"Entry","text":"focused","start":536,"end":552,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"DescribeTable","text":"focused","start":559,"end":620,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FEntry","text":"focused","start":599,"end":616,"spec":true,"focused":true,"pending":false,"nodes":[]}]}]}]
34 changes: 17 additions & 17 deletions ginkgo/outline/_testdata/mixed_test.go.csv
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Name,Text,Start,End,Spec,Focused,Pending
FDescribe,unfocused,71,582,false,false,false
FContext,unfocused,104,203,false,false,false
It,unfocused,137,167,true,false,false
FIt,focused,170,199,true,true,false
Context,unfocused,206,304,false,false,false
FIt,focused,238,267,true,true,false
It,unfocused,270,300,true,false,false
FContext,focused,307,401,false,true,false
It,focused,338,366,true,true,false
It,focused,369,397,true,true,false
PContext,unfocused,404,579,false,false,true
FIt,unfocused,437,505,true,false,true
By,unfocused,466,481,false,false,true
By,unfocused,485,500,false,false,true
It,unfocused,508,575,true,false,true
By,unfocused,536,551,false,false,true
By,unfocused,555,570,false,false,true
FDescribe,unfocused,70,581,false,false,false
FContext,unfocused,103,202,false,false,false
It,unfocused,136,166,true,false,false
FIt,focused,169,198,true,true,false
Context,unfocused,205,303,false,false,false
FIt,focused,237,266,true,true,false
It,unfocused,269,299,true,false,false
FContext,focused,306,400,false,true,false
It,focused,337,365,true,true,false
It,focused,368,396,true,true,false
PContext,unfocused,403,578,false,false,true
FIt,unfocused,436,504,true,false,true
By,unfocused,465,480,false,false,true
By,unfocused,484,499,false,false,true
It,unfocused,507,574,true,false,true
By,unfocused,535,550,false,false,true
By,unfocused,554,569,false,false,true
2 changes: 1 addition & 1 deletion ginkgo/outline/_testdata/mixed_test.go.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name":"FDescribe","text":"unfocused","start":71,"end":582,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FContext","text":"unfocused","start":104,"end":203,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"unfocused","start":137,"end":167,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"FIt","text":"focused","start":170,"end":199,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"Context","text":"unfocused","start":206,"end":304,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FIt","text":"focused","start":238,"end":267,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"unfocused","start":270,"end":300,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"FContext","text":"focused","start":307,"end":401,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":338,"end":366,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"focused","start":369,"end":397,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"PContext","text":"unfocused","start":404,"end":579,"spec":false,"focused":false,"pending":true,"nodes":[{"name":"FIt","text":"unfocused","start":437,"end":505,"spec":true,"focused":false,"pending":true,"nodes":[{"name":"By","text":"unfocused","start":466,"end":481,"spec":false,"focused":false,"pending":true,"nodes":[]},{"name":"By","text":"unfocused","start":485,"end":500,"spec":false,"focused":false,"pending":true,"nodes":[]}]},{"name":"It","text":"unfocused","start":508,"end":575,"spec":true,"focused":false,"pending":true,"nodes":[{"name":"By","text":"unfocused","start":536,"end":551,"spec":false,"focused":false,"pending":true,"nodes":[]},{"name":"By","text":"unfocused","start":555,"end":570,"spec":false,"focused":false,"pending":true,"nodes":[]}]}]}]}]
[{"name":"FDescribe","text":"unfocused","start":70,"end":581,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FContext","text":"unfocused","start":103,"end":202,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"unfocused","start":136,"end":166,"spec":true,"focused":false,"pending":false,"nodes":[]},{"name":"FIt","text":"focused","start":169,"end":198,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"Context","text":"unfocused","start":205,"end":303,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FIt","text":"focused","start":237,"end":266,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"unfocused","start":269,"end":299,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"FContext","text":"focused","start":306,"end":400,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":337,"end":365,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"focused","start":368,"end":396,"spec":true,"focused":true,"pending":false,"nodes":[]}]},{"name":"PContext","text":"unfocused","start":403,"end":578,"spec":false,"focused":false,"pending":true,"nodes":[{"name":"FIt","text":"unfocused","start":436,"end":504,"spec":true,"focused":false,"pending":true,"nodes":[{"name":"By","text":"unfocused","start":465,"end":480,"spec":false,"focused":false,"pending":true,"nodes":[]},{"name":"By","text":"unfocused","start":484,"end":499,"spec":false,"focused":false,"pending":true,"nodes":[]}]},{"name":"It","text":"unfocused","start":507,"end":574,"spec":true,"focused":false,"pending":true,"nodes":[{"name":"By","text":"unfocused","start":535,"end":550,"spec":false,"focused":false,"pending":true,"nodes":[]},{"name":"By","text":"unfocused","start":554,"end":569,"spec":false,"focused":false,"pending":true,"nodes":[]}]}]}]}]
28 changes: 14 additions & 14 deletions ginkgo/outline/_testdata/nestedfocused_test.go.csv
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Name,Text,Start,End,Spec,Focused,Pending
FDescribe,unfocused,71,474,false,false,false
FContext,unfocused,104,273,false,false,false
It,unfocused,137,204,true,false,false
By,unfocused,165,180,false,false,false
By,unfocused,184,199,false,false,false
FIt,focused,207,269,true,true,false
By,focused,234,247,false,true,false
By,focused,251,264,false,true,false
Context,unfocused,276,374,false,false,false
FIt,focused,308,337,true,true,false
It,unfocused,340,370,true,false,false
FContext,focused,377,471,false,true,false
It,focused,408,436,true,true,false
It,focused,439,467,true,true,false
FDescribe,unfocused,70,473,false,false,false
FContext,unfocused,103,272,false,false,false
It,unfocused,136,203,true,false,false
By,unfocused,164,179,false,false,false
By,unfocused,183,198,false,false,false
FIt,focused,206,268,true,true,false
By,focused,233,246,false,true,false
By,focused,250,263,false,true,false
Context,unfocused,275,373,false,false,false
FIt,focused,307,336,true,true,false
It,unfocused,339,369,true,false,false
FContext,focused,376,470,false,true,false
It,focused,407,435,true,true,false
It,focused,438,466,true,true,false
2 changes: 1 addition & 1 deletion ginkgo/outline/_testdata/nestedfocused_test.go.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name":"FDescribe","text":"unfocused","start":71,"end":474,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FContext","text":"unfocused","start":104,"end":273,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"unfocused","start":137,"end":204,"spec":true,"focused":false,"pending":false,"nodes":[{"name":"By","text":"unfocused","start":165,"end":180,"spec":false,"focused":false,"pending":false,"nodes":[]},{"name":"By","text":"unfocused","start":184,"end":199,"spec":false,"focused":false,"pending":false,"nodes":[]}]},{"name":"FIt","text":"focused","start":207,"end":269,"spec":true,"focused":true,"pending":false,"nodes":[{"name":"By","text":"focused","start":234,"end":247,"spec":false,"focused":true,"pending":false,"nodes":[]},{"name":"By","text":"focused","start":251,"end":264,"spec":false,"focused":true,"pending":false,"nodes":[]}]}]},{"name":"Context","text":"unfocused","start":276,"end":374,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FIt","text":"focused","start":308,"end":337,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"unfocused","start":340,"end":370,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"FContext","text":"focused","start":377,"end":471,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":408,"end":436,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"focused","start":439,"end":467,"spec":true,"focused":true,"pending":false,"nodes":[]}]}]}]
[{"name":"FDescribe","text":"unfocused","start":70,"end":473,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FContext","text":"unfocused","start":103,"end":272,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"It","text":"unfocused","start":136,"end":203,"spec":true,"focused":false,"pending":false,"nodes":[{"name":"By","text":"unfocused","start":164,"end":179,"spec":false,"focused":false,"pending":false,"nodes":[]},{"name":"By","text":"unfocused","start":183,"end":198,"spec":false,"focused":false,"pending":false,"nodes":[]}]},{"name":"FIt","text":"focused","start":206,"end":268,"spec":true,"focused":true,"pending":false,"nodes":[{"name":"By","text":"focused","start":233,"end":246,"spec":false,"focused":true,"pending":false,"nodes":[]},{"name":"By","text":"focused","start":250,"end":263,"spec":false,"focused":true,"pending":false,"nodes":[]}]}]},{"name":"Context","text":"unfocused","start":275,"end":373,"spec":false,"focused":false,"pending":false,"nodes":[{"name":"FIt","text":"focused","start":307,"end":336,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"unfocused","start":339,"end":369,"spec":true,"focused":false,"pending":false,"nodes":[]}]},{"name":"FContext","text":"focused","start":376,"end":470,"spec":false,"focused":true,"pending":false,"nodes":[{"name":"It","text":"focused","start":407,"end":435,"spec":true,"focused":true,"pending":false,"nodes":[]},{"name":"It","text":"focused","start":438,"end":466,"spec":true,"focused":true,"pending":false,"nodes":[]}]}]}]
Loading

0 comments on commit 0c40583

Please sign in to comment.