-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more tests for user defined import prefix
- Loading branch information
1 parent
97dc5ec
commit 5430f78
Showing
6 changed files
with
39 additions
and
0 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
4 changes: 4 additions & 0 deletions
4
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/Ballerina.toml
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
org = "xmldata_test" | ||
name = "sample_12" | ||
version = "0.1.0" |
6 changes: 6 additions & 0 deletions
6
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/file_1.bal
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ballerina/data.xmldata as xd; | ||
|
||
public function testFunc() returns error? { | ||
string str = string `{"a": 1, "b": "str"}`; | ||
UnionType _ = check xd:parseString(str); | ||
} |
6 changes: 6 additions & 0 deletions
6
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/file_2.bal
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ballerina/data.xmldata as xd2; | ||
|
||
public function testFunc2() returns error? { | ||
string str = string `{"a": 1, "b": "str"}`; | ||
UnionType _ = check xd2:parseString(str); | ||
} |
6 changes: 6 additions & 0 deletions
6
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/file_3.bal
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ballerina/data.xmldata; | ||
|
||
public function testFunc3() returns error? { | ||
string str = string `{"a": 1, "b": "str"}`; | ||
UnionType _ = check xmldata:parseString(str); | ||
} |
1 change: 1 addition & 0 deletions
1
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/types.bal
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
type UnionType record {|int a;|}|record {|string b;|}; |