mirror of
https://github.com/github/codeql.git
synced 2026-05-22 15:17:09 +02:00
This is done by simply adding the autobuilder from the shared tree-sitter extractor library.
17 lines
229 B
Rust
17 lines
229 B
Rust
mod maybe_ignore;
|
|
|
|
pub fn add(left: u64, right: u64) -> u64 {
|
|
left + right
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn it_works() {
|
|
let result = add(2, 2);
|
|
assert_eq!(result, 4);
|
|
}
|
|
}
|