Commit c7795c9 1 parent 8e9874a commit c7795c9 Copy full SHA for c7795c9
File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 52
52
python -m pip install colorama
53
53
python -m pip install maturin
54
54
python -m pip install pytest
55
+ sudo apt install lcov
55
56
56
57
rustup target add x86_64-unknown-linux-musl
57
58
cargo install grcov
66
67
run : |
67
68
. ./activate
68
69
LLVM_PROFILE_FILE="pytest.profraw" pytest clvm/tests
70
+ grcov . -s . --binary-path ./venv/lib/python3.9/site-packages/ -t lcov --branch --ignore-not-existing -o pytest.lcov.info --keep-only src
71
+ rm pytest.profraw
72
+
69
73
LLVM_PROFILE_FILE="unittest.profraw" RUSTFLAGS="-Zinstrument-coverage" cargo test --no-default-features
70
- grcov . -s . --binary-path ./venv/lib/python3.9/site-packages/ -t lcov --branch --ignore-not-existing -o lcov.info --keep-only src
74
+ grcov . -s . --binary-path ./target/debug/build -t lcov --branch --ignore-not-existing -o unittest.lcov.info --keep-only src
75
+
76
+ # merge the lcov files
77
+ lcov unittest.lcov.info pytest.lcov.info -o lcov.info
71
78
72
79
- name : Coveralls
73
80
uses : coverallsapp/github-action@master
Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ pub struct IntAllocator {
29
29
atom_vec : Vec < IntAtomBuf > ,
30
30
}
31
31
32
- impl Default for IntAllocator {
33
- fn default ( ) -> Self {
34
- Self :: new ( )
35
- }
36
- }
37
-
38
32
impl IntAllocator {
39
33
pub fn new ( ) -> Self {
40
34
let mut r = IntAllocator {
You can’t perform that action at this time.
0 commit comments