Skip to content

Commit

Permalink
Add description to the test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunayf committed Dec 14, 2023
1 parent 2732087 commit 44d4e65
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ private Pair<List<PathSegment>, Boolean> completableSegmentList(ResourceMethodSy
}
if (node.kind() == SyntaxKind.COMPUTED_RESOURCE_ACCESS_SEGMENT) {
ExpressionNode exprNode = ((ComputedResourceAccessSegmentNode) node).expression();
Optional<TypeSymbol> exprType =
semanticModel.get().typeOf(exprNode);
Optional<TypeSymbol> exprType = semanticModel.get().typeOf(exprNode);
if (exprType.isEmpty() || !checkSubtype(typeSymbol, exprType.get(), exprNode.toString())) {
return Pair.of(Collections.emptyList(), false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"character": 9
},
"source": "action_node_context/source/client_resource_access_action_source31.bal",
"description": "",
"description": "Test completions in singleton resource param",
"items": [
{
"label": "/[\"name\" a].accessor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"character": 9
},
"source": "action_node_context/source/client_resource_access_action_source32.bal",
"description": "",
"description": "Test completions in union of singleton resource params",
"items": [
{
"label": "/[\"A1\"|\"A2\" a].accessor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"character": 9
},
"source": "action_node_context/source/client_resource_access_action_source33.bal",
"description": "",
"description": "Test completions in resource param with a subtype of expression",
"items": [
{
"label": "/[int|string:Char a].accessor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"character": 18
},
"source": "action_node_context/source/client_resource_access_action_source34.bal",
"description": "",
"description": "Test completions in multiple singleton resource access functions, and accessing with a field value",
"items": [
{
"label": ".accessor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"character": 14
},
"source": "action_node_context/source/client_resource_access_action_source35.bal",
"description": "",
"description": "Test completions in multiple singleton resource access functions, and accessing with a label",
"items": [
{
"label": ".accessor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"character": 12
},
"source": "action_node_context/source/client_resource_access_action_source36.bal",
"description": "",
"description": "Test completions in multiple resource access functions with subtypes of the expression",
"items": [
{
"label": ".accessor",
Expand Down

0 comments on commit 44d4e65

Please sign in to comment.