From b76629ff604f6fd17304abb9c93c654103ce4333 Mon Sep 17 00:00:00 2001 From: "seqan-actions[bot]" Date: Mon, 24 Jul 2023 06:11:45 +0200 Subject: [PATCH] [MISC] IWYU --- include/hibf/detail/layout/layout.hpp | 9 +++---- include/hibf/detail/sketch/toolbox.hpp | 2 -- src/detail/sketch/toolbox.cpp | 8 ++----- .../sketch/estimate_kmer_counts_test.cpp | 11 ++++++--- .../hibf/detail/sketch/hyperloglog_test.cpp | 24 ++++++++++++------- test/unit/hibf/detail/sketch/toolbox_test.cpp | 20 ++++++++++++---- 6 files changed, 46 insertions(+), 28 deletions(-) diff --git a/include/hibf/detail/layout/layout.hpp b/include/hibf/detail/layout/layout.hpp index 892582e4..d884d237 100644 --- a/include/hibf/detail/layout/layout.hpp +++ b/include/hibf/detail/layout/layout.hpp @@ -1,9 +1,10 @@ #pragma once -#include // for derived_from -#include // for size_t -#include // for ostream -#include // for vector, operator== +#include // for copy +#include // for derived_from +#include // for size_t +#include // for ostream +#include // for vector, operator== #include // for header, merged_bin #include diff --git a/include/hibf/detail/sketch/toolbox.hpp b/include/hibf/detail/sketch/toolbox.hpp index b0b72a09..de0b20ed 100644 --- a/include/hibf/detail/sketch/toolbox.hpp +++ b/include/hibf/detail/sketch/toolbox.hpp @@ -3,10 +3,8 @@ #include // for max #include // for uint64_t, int64_t #include // for size_t -#include // for path #include // for greater #include // for priority_queue -#include // for string #include // for vector #include // for unordered_flat_map diff --git a/src/detail/sketch/toolbox.cpp b/src/detail/sketch/toolbox.cpp index e5e9c118..ad31afe6 100644 --- a/src/detail/sketch/toolbox.cpp +++ b/src/detail/sketch/toolbox.cpp @@ -1,18 +1,14 @@ -#include // for sort +#include // for max, fill_n, sort #include // for assert #include // for uint64_t, int64_t #include // for floor, sqrt #include // for size_t -#include // for path, operator/ -#include // for ifstream, ios #include // for greater #include // for numeric_limits #include // for omp_get_thread_num #include // for uniform_int_distribution, mt19937_64 -#include // for runtime_error -#include // for basic_string, operator+, string #include // for swap, move -#include // for vector, allocator +#include // for vector #include // for unordered_flat_map, pair #include // for hyperloglog diff --git a/test/unit/hibf/detail/sketch/estimate_kmer_counts_test.cpp b/test/unit/hibf/detail/sketch/estimate_kmer_counts_test.cpp index b57e9819..da00727d 100644 --- a/test/unit/hibf/detail/sketch/estimate_kmer_counts_test.cpp +++ b/test/unit/hibf/detail/sketch/estimate_kmer_counts_test.cpp @@ -1,8 +1,13 @@ -#include +#include // for Test, Message, TestPartResult, EXPECT_EQ, TestInfo -#include +#include // for uint8_t +#include // for size_t +#include // for basic_string, string +#include // for string_view +#include // for allocator, vector -#include +#include // for estimate_kmer_counts +#include // for hyperloglog TEST(estimate_kmer_counts_test, small_example) { diff --git a/test/unit/hibf/detail/sketch/hyperloglog_test.cpp b/test/unit/hibf/detail/sketch/hyperloglog_test.cpp index 73b90a43..69d5cb6c 100644 --- a/test/unit/hibf/detail/sketch/hyperloglog_test.cpp +++ b/test/unit/hibf/detail/sketch/hyperloglog_test.cpp @@ -1,11 +1,19 @@ -#include - -#include -#include -#include - -#include -#include // for tmp_directory +#include // for Test, TestInfo, Message, TestPartResult, TEST, EXPECT_EQ, EXPE... + +#include // for uint8_t +#include // for size_t +#include // for path +#include // for ofstream, ifstream, basic_ostream::write, ios +#include // for iota_view, operator==, _Iota, iota +#include // for runtime_error, invalid_argument +#include // for allocator, basic_string, hash, string, char_traits, operator== +#include // for string_view +#include // for unordered_set +#include // for vector + +#include // for hyperloglog +#include // for operator/, sandboxed_path +#include // for tmp_directory TEST(hyperloglog, bit_widths) { diff --git a/test/unit/hibf/detail/sketch/toolbox_test.cpp b/test/unit/hibf/detail/sketch/toolbox_test.cpp index 3a15d7cd..a5689c29 100644 --- a/test/unit/hibf/detail/sketch/toolbox_test.cpp +++ b/test/unit/hibf/detail/sketch/toolbox_test.cpp @@ -1,8 +1,18 @@ -#include - -#include -#include // for EXPECT_RANGE_EQ, expect_range_eq -#include // for tmp_directory +#include // for Message, TestPartResult, EXPECT_EQ, TestInfo, TEST_F, Test + +#include // for uint64_t +#include // for size_t +#include // for greater +#include // for numeric_limits +#include // for allocator, basic_string, string +#include // for string_view +#include // for tie, make_tuple +#include // for vector + +#include // for unordered_flat_map +#include // for hyperloglog +#include // for clustering_node, entry, precompute_union_estimates_for, cluste... +#include // for expect_range_eq, EXPECT_RANGE_EQ // inherits from toolbox to test private members struct toolbox_test : public ::testing::Test