Skip to content

Commit

Permalink
[MISC] automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
seqan-actions committed Aug 30, 2023
1 parent b0689c5 commit 1a1673a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/hierarchical_interleaved_bloom_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ size_t hierarchical_build(hierarchical_interleaved_bloom_filter & hibf,
else
{
compute_kmers(kmers, data, record);
build::insert_into_ibf(kmers, record.number_of_technical_bins, record.storage_TB_id, ibf, data.fill_ibf_timer);
build::insert_into_ibf(kmers,
record.number_of_technical_bins,
record.storage_TB_id,
ibf,
data.fill_ibf_timer);
if (!is_root)
build::update_parent_kmers(parent_kmers, kmers, data.merge_kmers_timer);

Check warning on line 155 in src/hierarchical_interleaved_bloom_filter.cpp

View check run for this annotation

Codecov / codecov/patch

src/hierarchical_interleaved_bloom_filter.cpp#L155

Added line #L155 was not covered by tests
}
Expand Down
12 changes: 6 additions & 6 deletions test/unit/hibf/layout/simple_binning_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ TEST(simple_binning_test, small_example)
std::vector<size_t> kmer_counts{100, 40, 20, 20};

seqan::hibf::layout::data_store data{.hibf_layout = &hibf_layout,
.kmer_counts = &kmer_counts,
.fpr_correction = std::vector<double>(65, 1.0)};
.kmer_counts = &kmer_counts,
.fpr_correction = std::vector<double>(65, 1.0)};

seqan::hibf::layout::simple_binning algo{data, 9};
size_t max_bin = algo.execute();
Expand All @@ -36,8 +36,8 @@ TEST(simple_binning_test, uniform_distribution)
std::vector<size_t> kmer_counts{20, 20, 20, 20};

seqan::hibf::layout::data_store data{.hibf_layout = &hibf_layout,
.kmer_counts = &kmer_counts,
.fpr_correction = std::vector<double>(65, 1.0)};
.kmer_counts = &kmer_counts,
.fpr_correction = std::vector<double>(65, 1.0)};

seqan::hibf::layout::simple_binning algo{data, 4u};
size_t max_bin = algo.execute();
Expand All @@ -58,8 +58,8 @@ TEST(simple_binning_test, user_bins_must_be_smaller_than_technical_bins)
std::vector<size_t> kmer_counts{100, 40, 20, 20};

seqan::hibf::layout::data_store data{.hibf_layout = &hibf_layout,
.kmer_counts = &kmer_counts,
.fpr_correction = std::vector<double>(65, 1.0)};
.kmer_counts = &kmer_counts,
.fpr_correction = std::vector<double>(65, 1.0)};

EXPECT_THROW((seqan::hibf::layout::simple_binning{data, 2}), std::runtime_error);
}

0 comments on commit 1a1673a

Please sign in to comment.