mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
WIP: integration test
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
[workspace]
|
||||
[package]
|
||||
name = "exe"
|
||||
version = "0.1.0"
|
||||
edition = "2021" # replaced in test
|
||||
|
||||
[dependencies]
|
||||
lib = { path = "../lib" }
|
||||
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
lib::hello();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
[workspace]
|
||||
[package]
|
||||
name = "lib"
|
||||
version = "0.1.0"
|
||||
edition = "2021" # replaced in test
|
||||
|
||||
[dependencies]
|
||||
@@ -0,0 +1,7 @@
|
||||
macro_rules! define_hello {
|
||||
() => {
|
||||
pub fn hello() { println!("hello world!"); }
|
||||
};
|
||||
}
|
||||
|
||||
define_hello!();
|
||||
@@ -0,0 +1,2 @@
|
||||
def test(codeql, rust):
|
||||
codeql.database.create(source_root="exe")
|
||||
Reference in New Issue
Block a user