-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more test cases for goto def with dependencies whose names …
…contain underline (#965) Signed-off-by: zongz <zongzhe1024@163.com>
- Loading branch information
Showing
14 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
kclvm/driver/src/test_data/kpm_metadata_with_line/dep-with-line/kcl.mod
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,5 @@ | ||
[package] | ||
name = "dep-with-line" | ||
edition = "0.0.1" | ||
version = "0.0.1" | ||
|
Empty file.
1 change: 1 addition & 0 deletions
1
kclvm/driver/src/test_data/kpm_metadata_with_line/dep-with-line/main.k
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 @@ | ||
The_first_kcl_program = 'Hello World dep-with-line!' |
7 changes: 7 additions & 0 deletions
7
kclvm/driver/src/test_data/kpm_metadata_with_line/main_pkg/kcl.mod
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,7 @@ | ||
[package] | ||
name = "main_pkg" | ||
edition = "0.0.1" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
dep-with-line = { path = "../dep-with-line" } |
6 changes: 6 additions & 0 deletions
6
kclvm/driver/src/test_data/kpm_metadata_with_line/main_pkg/kcl.mod.lock
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 @@ | ||
[dependencies] | ||
[dependencies.dep-with-line] | ||
name = "dep-with-line" | ||
full_name = "dep-with-line_" | ||
sum = "O2Z1djaB1lC38kNfhwUUYAlqGKE7seUqqys3DPcJfEw=" | ||
path = "../dep-with-line" |
3 changes: 3 additions & 0 deletions
3
kclvm/driver/src/test_data/kpm_metadata_with_line/main_pkg/main.k
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,3 @@ | ||
import dep_with_line as dwl | ||
|
||
The_first_kcl_program = dwl.The_first_kcl_program |
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
5 changes: 5 additions & 0 deletions
5
kclvm/tools/src/LSP/src/test_data/goto_def_with_line_test/dep-with-line/kcl.mod
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,5 @@ | ||
[package] | ||
name = "dep-with-line" | ||
edition = "0.0.1" | ||
version = "0.0.1" | ||
|
Empty file.
1 change: 1 addition & 0 deletions
1
kclvm/tools/src/LSP/src/test_data/goto_def_with_line_test/dep-with-line/main.k
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 @@ | ||
The_first_kcl_program = 'Hello World aa!' |
7 changes: 7 additions & 0 deletions
7
kclvm/tools/src/LSP/src/test_data/goto_def_with_line_test/main_pkg/kcl.mod
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,7 @@ | ||
[package] | ||
name = "b" | ||
edition = "0.0.1" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
dep-with-line = { path = "../dep-with-line" } |
6 changes: 6 additions & 0 deletions
6
kclvm/tools/src/LSP/src/test_data/goto_def_with_line_test/main_pkg/kcl.mod.lock
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 @@ | ||
[dependencies] | ||
[dependencies.dep-with-line] | ||
name = "dep-with-line" | ||
full_name = "dep-with-line_" | ||
sum = "O2Z1djaB1lC38kNfhwUUYAlqGKE7seUqqys3DPcJfEw=" | ||
path = "../dep-with-line" |
3 changes: 3 additions & 0 deletions
3
kclvm/tools/src/LSP/src/test_data/goto_def_with_line_test/main_pkg/main.k
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,3 @@ | ||
import dep_with_line as dwl | ||
|
||
The_first_kcl_program = dwl.The_first_kcl_program |