forked from Andersbakken/rtags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port sbroot test to automated pytests
- Loading branch information
Showing
40 changed files
with
745 additions
and
1,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
[ | ||
{ | ||
"name": "follow_location", | ||
"rc-command": [ "--follow-location", "{0}/main.cpp:9:7:"], | ||
"expectation": ["{0}/main.cpp:5:17:"] | ||
} | ||
{ | ||
"name": "follow_location", | ||
"rc-command": [ | ||
"--follow-location", | ||
"{0}/main.cpp:9:7:" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:5:17:" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
[ | ||
{ "name": "find_references", | ||
"rc-command": [ "--references", "{0}/main.cpp:9:8"], | ||
"expectation": ["{0}/main.cpp:16:17","{0}/main.cpp:17:17","{0}/main.cpp:20:5"] }, | ||
|
||
{ "name": "multiple_template_parameters", | ||
"rc-command": [ "--references", "{0}/main.cpp:25:8"], | ||
"expectation": ["{0}/main.cpp:27:17","{0}/main.cpp:28:17","{0}/main.cpp:29:17", | ||
"{0}/main.cpp:30:17", "{0}/main.cpp:31:17"] } | ||
{ | ||
"name": "find_references", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/main.cpp:9:8" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:16:17", | ||
"{0}/main.cpp:17:17", | ||
"{0}/main.cpp:20:5" | ||
] | ||
}, | ||
{ | ||
"name": "multiple_template_parameters", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/main.cpp:25:8" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:27:17", | ||
"{0}/main.cpp:28:17", | ||
"{0}/main.cpp:29:17", | ||
"{0}/main.cpp:30:17", | ||
"{0}/main.cpp:31:17" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
[ | ||
{ "name": "disabled_member_expression", | ||
"rc-command": [ "--references", "{0}/main.cpp:12:11"], | ||
"expectation": ["{0}/main.cpp:2:10","{0}/main.cpp:5:9"] } | ||
{ | ||
"name": "disabled_member_expression", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/main.cpp:12:11" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:2:10", | ||
"{0}/main.cpp:5:9" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
[ | ||
{ "name": "multiple_template_parameters", | ||
"rc-command": [ "--references", "{0}/a.hpp:4:8"], | ||
"expectation": ["{0}/main.cpp:3:17","{0}/main.cpp:4:17","{0}/main.cpp:5:17", | ||
"{0}/a.cpp:3:17", "{0}/a.cpp:4:17"] } | ||
{ | ||
"name": "multiple_template_parameters", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/a.hpp:4:8" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:3:17", | ||
"{0}/main.cpp:4:17", | ||
"{0}/main.cpp:5:17", | ||
"{0}/a.cpp:3:17", | ||
"{0}/a.cpp:4:17" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
[ | ||
{ "name": "completion should show accessible items", | ||
|
||
"rc-command": [ "--code-complete-at", "{0}/main.cpp:12:15", | ||
"--synchronous-completions"], | ||
|
||
"expectation": [ " get int get() CXXMethod Foo ", | ||
" validate void validate(int) CXXMethod Foo ", | ||
" Foo Foo:: ClassDecl Foo ", | ||
" operator= Foo & operator=(const Foo &) CXXMethod Foo ", | ||
" operator= Foo & operator=(Foo &&) CXXMethod Foo ", | ||
" ~Foo void ~Foo() CXXDestructor Foo ", | ||
""] }, | ||
|
||
{ "name": "completion should not show not accessible/private items", | ||
|
||
"rc-command": [ "--code-complete-at", "{0}/main.cpp:20:7", | ||
"--synchronous-completions"], | ||
|
||
"expectation": [ " get int get() CXXMethod Foo ", | ||
" Foo Foo:: ClassDecl Foo ", | ||
" operator= Foo & operator=(const Foo &) CXXMethod Foo ", | ||
" operator= Foo & operator=(Foo &&) CXXMethod Foo ", | ||
" ~Foo void ~Foo() CXXDestructor Foo ", | ||
""] } | ||
{ | ||
"name": "completion should show accessible items", | ||
"rc-command": [ | ||
"--code-complete-at", | ||
"{0}/main.cpp:12:15", | ||
"--synchronous-completions" | ||
], | ||
"expectation": [ | ||
" get int get() CXXMethod Foo ", | ||
" validate void validate(int) CXXMethod Foo ", | ||
" Foo Foo:: ClassDecl Foo ", | ||
" operator= Foo & operator=(const Foo &) CXXMethod Foo ", | ||
" operator= Foo & operator=(Foo &&) CXXMethod Foo ", | ||
" ~Foo void ~Foo() CXXDestructor Foo ", | ||
"" | ||
] | ||
}, | ||
{ | ||
"name": "completion should not show not accessible/private items", | ||
"rc-command": [ | ||
"--code-complete-at", | ||
"{0}/main.cpp:20:7", | ||
"--synchronous-completions" | ||
], | ||
"expectation": [ | ||
" get int get() CXXMethod Foo ", | ||
" Foo Foo:: ClassDecl Foo ", | ||
" operator= Foo & operator=(const Foo &) CXXMethod Foo ", | ||
" operator= Foo & operator=(Foo &&) CXXMethod Foo ", | ||
" ~Foo void ~Foo() CXXDestructor Foo ", | ||
"" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
[ | ||
{ "name": "forward_declared_object_points_to_real_declaration", | ||
"rc-command": [ "--follow-location", "{0}/contains_forward_declaration.hpp:3:16"], | ||
"expectation": ["{0}/include.hpp:2:8"] }, | ||
{ "name": "forward_declared_object_points_to_real_declaration_through_macro", | ||
"rc-command": [ "--follow-location", "{0}/main.cpp:10:15", "--all-targets"], | ||
"expectation": ["{0}/include.hpp:2:8", "{0}/main.cpp:5:1"] }, | ||
{ "name": "reference_to_opaque_forward_declaration", | ||
"rc-command": [ "--references", "{0}/main.cpp:13:8"], | ||
"expectation": ["{0}/main.cpp:17:5"] } | ||
{ | ||
"name": "forward_declared_object_points_to_real_declaration", | ||
"rc-command": [ | ||
"--follow-location", | ||
"{0}/contains_forward_declaration.hpp:3:16" | ||
], | ||
"expectation": [ | ||
"{0}/include.hpp:2:8" | ||
] | ||
}, | ||
{ | ||
"name": "forward_declared_object_points_to_real_declaration_through_macro", | ||
"rc-command": [ | ||
"--follow-location", | ||
"{0}/main.cpp:10:15", | ||
"--all-targets" | ||
], | ||
"expectation": [ | ||
"{0}/include.hpp:2:8", | ||
"{0}/main.cpp:5:1" | ||
] | ||
}, | ||
{ | ||
"name": "reference_to_opaque_forward_declaration", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/main.cpp:13:8" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:17:5" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
[ | ||
{ "name": "classes/structs instance containing a pointer pointer field should not be a reference to the function pointer", | ||
"rc-command": [ "--references", "{0}/main.cpp:3:12" ], | ||
"expectation": [ "{0}/main.cpp:10:7" ] } | ||
{ | ||
"name": "classes/structs instance containing a pointer pointer field should not be a reference to the function pointer", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/main.cpp:3:12" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:10:7" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
[ | ||
{ "name": "find_references", | ||
"rc-command": [ "--references", "{0}/main.cpp:2:6"], | ||
"expectation": ["{0}/main.cpp:10:5"] } | ||
{ | ||
"name": "find_references", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/main.cpp:2:6" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:10:5" | ||
] | ||
} | ||
] |
11 changes: 8 additions & 3 deletions
11
tests/automated/InlineConstructorWrongTarget/expectation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
[ | ||
{ "name": "inline constructor should not point to struct/class definition", | ||
"rc-command": [ "--follow-location", "{0}/main.cpp:7:5" ], | ||
"expectation": [] } | ||
{ | ||
"name": "inline constructor should not point to struct/class definition", | ||
"rc-command": [ | ||
"--follow-location", | ||
"{0}/main.cpp:7:5" | ||
], | ||
"expectation": [] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
[ | ||
{ "name": "find_references", | ||
"rc-command": [ "--references", "{0}/main.cpp:2:8"], | ||
"expectation": ["{0}/main.cpp:3:24","{0}/main.cpp:7:8","{0}/main.cpp:11:9"] } | ||
{ | ||
"name": "find_references", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/main.cpp:2:8" | ||
], | ||
"expectation": [ | ||
"{0}/main.cpp:3:24", | ||
"{0}/main.cpp:7:8", | ||
"{0}/main.cpp:11:9" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
[ | ||
{ "name": "follow_location", | ||
"rc-command": [ "--follow-location", "{0}/a.hpp:3:6"], | ||
"expectation": ["{0}/a.cpp:3:6"] }, | ||
{ "name": "find_references", | ||
"rc-command": [ "--references", "{0}/a.hpp:3:6"], | ||
"expectation": ["{0}/a.cpp:6:5","{0}/main.cpp:4:5","{0}/main.cpp:5:5"] } | ||
|
||
{ | ||
"name": "follow_location", | ||
"rc-command": [ | ||
"--follow-location", | ||
"{0}/a.hpp:3:6" | ||
], | ||
"expectation": [ | ||
"{0}/a.cpp:3:6" | ||
] | ||
}, | ||
{ | ||
"name": "find_references", | ||
"rc-command": [ | ||
"--references", | ||
"{0}/a.hpp:3:6" | ||
], | ||
"expectation": [ | ||
"{0}/a.cpp:6:5", | ||
"{0}/main.cpp:4:5", | ||
"{0}/main.cpp:5:5" | ||
] | ||
} | ||
] |
Oops, something went wrong.