We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
summarize()
1 parent f6f6c4f commit 07c5617Copy full SHA for 07c5617
1 file changed
cpp-linter/src/clang_tools/mod.rs
@@ -415,17 +415,17 @@ mod tests {
415
};
416
let total_review_comments = 2;
417
let summary_only = false;
418
+ #[cfg(feature = "bin")]
419
+ {
420
+ crate::logger::try_init();
421
+ log::set_max_level(log::LevelFilter::Info);
422
+ }
423
let review_summary = ReviewComments::default().summarize(
424
&clang_versions,
425
&comments,
426
total_review_comments,
427
summary_only,
428
);
- #[cfg(feature = "bin")]
- {
- crate::logger::try_init();
- log::set_max_level(log::LevelFilter::Info);
- }
429
assert!(review_summary.contains("suggestions were duplicates of previous reviews"));
430
}
431
0 commit comments