use super::*;
const INPUT: &str = r#"
{
"data": [
{
"totals": {
"functions": {
"count": 10,
"percent": 88.8888
},
"lines": {
"count": 0,
"percent": 0
},
"regions": {
"count": 0,
"percent": 0
}
}
}
]
}
"#;
const EXPECTED: &str = r"
┌────────────────────┬──────────┐
│ Coverage │ % │
├────────────────────┼──────────┤
│ Covered regions │ 0.0000 │
│ Executed functions │ 88.8888 │
│ Covered lines │ 0.0000 │
└────────────────────┴──────────┘
Badge link: https://img.shields.io/badge/coverage-%E2%80%94%20%E2%94%82%2088%25%20%E2%94%82%20%E2%80%94-21b577.svg
";
#[test]
fn _0001() {
let tc = test_context!();
tc.command().current_dir(tc.current_dir()).write_stdin(INPUT).assert().success().stdout(EXPECTED).stderr("");
}