Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange coverage #24

Open
AlbanMinassian opened this issue Sep 5, 2018 · 0 comments
Open

strange coverage #24

AlbanMinassian opened this issue Sep 5, 2018 · 0 comments

Comments

@AlbanMinassian
Copy link

src/lib.rs:

pub fn add_two(a: i32) -> i32 {
    internal_adder(a, 2)
}

fn internal_adder(a: i32, b: i32) -> i32 {
    a + b
}

tests/integration_test.rs:

extern crate adder;

#[test]
fn it_adds_two() {
    assert_eq!(4, adder::add_two(2));
}

src/lib => coverage 50% !

test

"cargo cov" not show "internal_adder" function .. strange
rustc --version : rustc 1.30.0-nightly (1c2e17f4e 2018-09-04)

Ami44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant