Test/updating testing - #26
Merged
Merged
Conversation
Changes across all source files: - Remove dead code: delete unused src/read_parser.rs (old duplicate of file_parser.rs) and src/test.sh (unrelated rainbow ASCII script) - Pin bio dependency from "*" to "2.2.0" bloom_filter.rs: - Remove unnecessary std::ops::Drop import and extra blank lines - Merge duplicate std::io imports - Use field shorthand and implicit returns - Optimize distance() to avoid cloning entire BitVec (zero-allocation iterator) bloom_filter/hash_iter.rs: - Use BuildHasher::hash_one() instead of manual hash construction - Remove unused Hasher import, use field shorthand, clean up blank lines bloom_tree.rs: - Remove redundant 'static lifetime on constant - Remove unnecessary -> () return type and .clone() calls - Replace explicit returns with implicit returns - Simplify prune_tree conditional guards file_parser.rs: - Change get_kmers(&Vec<u8>) to idiomatic &[u8] - Fix kmer_size <= 0 (always false for usize) to kmer_size == 0 - Remove commented-out code blocks - Deduplicate FASTA/FASTQ branches in next_read() - Increase BufReader capacity from 100 bytes to 8192 query.rs: - Remove explicit returns and unused kmer_size parameter - Use .copied() instead of .map(|&x| x) - Replace .write() with .write_all() for correctness - Reduce unnecessary cloning in leaf node mapping result_map.rs: - Change &String parameters to idiomatic &str - Use entry().or_default() API instead of get_mut/else/insert - Remove commented-out debug println cache.rs: - Change &PathBuf to &Path in trait and impl signatures - Replace println! cache-miss message with log::warn! main.rs: - Remove unused 'use log' import - Fix 'cuttoff' typo to 'cutoff' - Use if-let for search_depth instead of double unwrap() - Change &PathBuf to &Path in helper function - Remove unnecessary &mut on read_block Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates existing tests, removes dead code, and performs several optimizations.