example_lib/module_b/
module_c.rs

1pub fn hello() {
2    println!("hello c");
3}
4#[cfg(test)]
5mod tests {
6    use super::*;
7
8    #[test]
9    fn test_hello() {
10        hello();
11    }
12}