Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 172373c

Browse files
committedNov 27, 2024·
cover missing lines
1 parent d89f39b commit 172373c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎cpp-linter/src/run.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,20 @@ mod test {
221221
.await;
222222
assert!(result.is_err());
223223
}
224+
225+
// just for completion. this test is not practical use case
226+
#[tokio::test]
227+
async fn no_analysis() {
228+
env::remove_var("GITHUB_OUTPUT"); // avoid writing to GH_OUT in parallel-running tests
229+
let result = run_main(vec![
230+
"cpp-linter".to_string(),
231+
"-l".to_string(),
232+
"false".to_string(),
233+
"--style".to_string(),
234+
String::new(),
235+
"--tidy-checks=-*".to_string(),
236+
])
237+
.await;
238+
assert!(result.is_ok());
239+
}
224240
}

0 commit comments

Comments
 (0)
Please sign in to comment.