Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
feat: try again
Browse files Browse the repository at this point in the history
  • Loading branch information
ASuciuX committed Dec 5, 2023
1 parent a084535 commit 21178cb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
path: ./mutation-testing/packages-output
key: mutants-stable-develop

# - name: Install cargo-mutants crate
# run: cargo install cargo-mutants
- name: Install cargo-mutants crate
run: cargo install cargo-mutants

- name: Create file with current commit hash if it doesn't exist
run: |
Expand All @@ -45,12 +45,12 @@ jobs:
- name: Print old commit hash
run: cat ./mutation-testing/packages-output/last_commit_hash.txt

# - name: Run the mutation testing on the differences
# run: |
# if [ -f ../packages-output/last_commit_hash.txt ]; then
# ./git-diff.sh
# fi
# working-directory: ./mutation-testing/scripts
- name: Run the mutation testing on the differences
run: |
if [ -f ../packages-output/last_commit_hash.txt ]; then
./git-diff.sh
fi
working-directory: ./mutation-testing/scripts

- name: Re-write the old commit hash with the current one
run: |
Expand Down
24 changes: 24 additions & 0 deletions stx-genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,30 @@ impl Iterator for LinePairReader {
}
}

fn fn_option_remove() -> Option<u8> {
Some(2)
}

fn fn_int_remove() -> u32 {
12
}

fn read_deflated_zonefiles_test_clone(
deflate_bytes: &'static [u8],
) -> Box<dyn Iterator<Item = GenesisZonefile>> {
let cursor = io::Cursor::new(deflate_bytes);
let deflate_decoder = deflate::Decoder::new(cursor);
let buff_reader = BufReader::new(deflate_decoder);
let pairs = LinePairReader {
val: buff_reader.lines(),
};
let pair_iter = pairs.into_iter().map(|pair| GenesisZonefile {
zonefile_hash: pair[0].to_owned(),
zonefile_content: pair[1].replace("\\n", "\n"),
});
return Box::new(pair_iter);
}

fn read_deflated_zonefiles(
deflate_bytes: &'static [u8],
) -> Box<dyn Iterator<Item = GenesisZonefile>> {
Expand Down

0 comments on commit 21178cb

Please sign in to comment.