Skip to content

Commit 3298bf8

Browse files
authored
Add dummy main function for coverage builds
Added a dummy main function for Tarpaulin coverage builds.
1 parent ebeaad8 commit 3298bf8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/agent/nodeagent/src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ async fn main() {
195195
tokio::join!(mgr, grpc);
196196
}
197197

198+
#[cfg(feature = "tarpaulin_include")]
199+
fn main() {
200+
// Dummy main for coverage builds
201+
println!("Tarpaulin coverage build: main function stub.");
202+
}
203+
198204
#[cfg(test)]
199205
mod tests {
200206
use crate::config::Config;

0 commit comments

Comments
 (0)