mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Add integration test for pub extern crate resolution
This commit is contained in:
@@ -7,4 +7,5 @@ mod a_module;
|
||||
fn main() {
|
||||
my_macro2!(); // $ item=my_macro2
|
||||
hello(); // $ item=HELLO
|
||||
lib::extern_crate_alias::a_module::hello(); // $ item=HELLO
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
| exe/src/main.rs:7:1:10:1 | fn main |
|
||||
| exe/src/main.rs:7:1:11:1 | fn main |
|
||||
| lib/src/a_module/mod.rs:1:1:4:1 | fn hello |
|
||||
|
||||
@@ -15,3 +15,5 @@ mod macros {
|
||||
}
|
||||
|
||||
pub mod a_module;
|
||||
|
||||
pub extern crate self as extern_crate_alias;
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
| Inconsistencies - Path resolution | 0 |
|
||||
| Inconsistencies - SSA | 0 |
|
||||
| Inconsistencies - data flow | 0 |
|
||||
| Lines of code extracted | 21 |
|
||||
| Lines of user code extracted | 21 |
|
||||
| Lines of code extracted | 23 |
|
||||
| Lines of user code extracted | 23 |
|
||||
| Macro calls - resolved | 10 |
|
||||
| Macro calls - total | 10 |
|
||||
| Macro calls - unresolved | 0 |
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
| Inconsistencies - Path resolution | 0 |
|
||||
| Inconsistencies - SSA | 0 |
|
||||
| Inconsistencies - data flow | 0 |
|
||||
| Lines of code extracted | 21 |
|
||||
| Lines of user code extracted | 21 |
|
||||
| Lines of code extracted | 23 |
|
||||
| Lines of user code extracted | 23 |
|
||||
| Macro calls - resolved | 10 |
|
||||
| Macro calls - total | 10 |
|
||||
| Macro calls - unresolved | 0 |
|
||||
|
||||
Reference in New Issue
Block a user