mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-07-24 11:23:42 +00:00
refactor: rename directory
This commit is contained in:
parent
4782784122
commit
1d6dd6623e
41 changed files with 54 additions and 67 deletions
28
demo/rust/src/lib.rs
Normal file
28
demo/rust/src/lib.rs
Normal file
|
@ -0,0 +1,28 @@
|
|||
fn hello() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
fn not_test() {}
|
||||
|
||||
#[test]
|
||||
fn success() {
|
||||
assert!(true);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fail() {
|
||||
assert!(false);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn tokio_test_success() {
|
||||
assert!(true);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn tokio_test_fail() {
|
||||
assert!(false);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue