Coverage Report

Created: 2024-10-08 06:52

src/lib.rs
Line
Count
Source (jump to first uncovered line)
1
1
pub fn do_thing(left: usize, right: usize) -> usize {
2
1
    if left > right { left + right } else { 
left * right0
}
3
1
}
4
5
#[cfg(test)]
6
mod tests {
7
    use super::*;
8
9
    #[test]
10
1
    fn gt_works() {
11
1
        let result = do_thing(4, 2);
12
1
        assert_eq!(result, 6);
13
1
    }
14
}