Skip to content

Commit

Permalink
[MISC] IWYU
Browse files Browse the repository at this point in the history
  • Loading branch information
seqan-actions committed Jul 24, 2023
1 parent 8b2fa8c commit b76629f
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 28 deletions.
9 changes: 5 additions & 4 deletions include/hibf/detail/layout/layout.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once

#include <concepts> // for derived_from
#include <cstddef> // for size_t
#include <iosfwd> // for ostream
#include <vector> // for vector, operator==
#include <algorithm> // for copy
#include <concepts> // for derived_from
#include <cstddef> // for size_t
#include <iosfwd> // for ostream
#include <vector> // for vector, operator==

#include <hibf/detail/prefixes.hpp> // for header, merged_bin
#include <hibf/platform.hpp>
Expand Down
2 changes: 0 additions & 2 deletions include/hibf/detail/sketch/toolbox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
#include <algorithm> // for max
#include <cinttypes> // for uint64_t, int64_t
#include <cstddef> // for size_t
#include <filesystem> // for path
#include <functional> // for greater
#include <queue> // for priority_queue
#include <string> // for string
#include <vector> // for vector

#include <hibf/contrib/robin_hood.hpp> // for unordered_flat_map
Expand Down
8 changes: 2 additions & 6 deletions src/detail/sketch/toolbox.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
#include <algorithm> // for sort
#include <algorithm> // for max, fill_n, sort
#include <cassert> // for assert
#include <cinttypes> // for uint64_t, int64_t
#include <cmath> // for floor, sqrt
#include <cstddef> // for size_t
#include <filesystem> // for path, operator/
#include <fstream> // for ifstream, ios
#include <functional> // for greater
#include <limits> // for numeric_limits
#include <omp.h> // for omp_get_thread_num
#include <random> // for uniform_int_distribution, mt19937_64
#include <stdexcept> // for runtime_error
#include <string> // for basic_string, operator+, string
#include <utility> // for swap, move
#include <vector> // for vector, allocator
#include <vector> // for vector

#include <hibf/contrib/robin_hood.hpp> // for unordered_flat_map, pair
#include <hibf/detail/sketch/hyperloglog.hpp> // for hyperloglog
Expand Down
11 changes: 8 additions & 3 deletions test/unit/hibf/detail/sketch/estimate_kmer_counts_test.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#include <gtest/gtest.h>
#include <gtest/gtest.h> // for Test, Message, TestPartResult, EXPECT_EQ, TestInfo

#include <vector>
#include <cinttypes> // for uint8_t
#include <cstddef> // for size_t
#include <string> // for basic_string, string
#include <string_view> // for string_view
#include <vector> // for allocator, vector

#include <hibf/detail/sketch/estimate_kmer_counts.hpp>
#include <hibf/detail/sketch/estimate_kmer_counts.hpp> // for estimate_kmer_counts
#include <hibf/detail/sketch/hyperloglog.hpp> // for hyperloglog

TEST(estimate_kmer_counts_test, small_example)
{
Expand Down
24 changes: 16 additions & 8 deletions test/unit/hibf/detail/sketch/hyperloglog_test.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#include <gtest/gtest.h>

#include <fstream>
#include <ranges>
#include <unordered_set>

#include <hibf/detail/sketch/hyperloglog.hpp>
#include <hibf/test/tmp_directory.hpp> // for tmp_directory
#include <gtest/gtest.h> // for Test, TestInfo, Message, TestPartResult, TEST, EXPECT_EQ, EXPE...

#include <cinttypes> // for uint8_t
#include <cstddef> // for size_t
#include <filesystem> // for path
#include <fstream> // for ofstream, ifstream, basic_ostream::write, ios
#include <ranges> // for iota_view, operator==, _Iota, iota
#include <stdexcept> // for runtime_error, invalid_argument
#include <string> // for allocator, basic_string, hash, string, char_traits, operator==
#include <string_view> // for string_view
#include <unordered_set> // for unordered_set
#include <vector> // for vector

#include <hibf/detail/sketch/hyperloglog.hpp> // for hyperloglog
#include <hibf/test/sandboxed_path.hpp> // for operator/, sandboxed_path
#include <hibf/test/tmp_directory.hpp> // for tmp_directory

TEST(hyperloglog, bit_widths)
{
Expand Down
20 changes: 15 additions & 5 deletions test/unit/hibf/detail/sketch/toolbox_test.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#include <gtest/gtest.h>

#include <hibf/detail/sketch/toolbox.hpp>
#include <hibf/test/expect_range_eq.hpp> // for EXPECT_RANGE_EQ, expect_range_eq
#include <hibf/test/tmp_directory.hpp> // for tmp_directory
#include <gtest/gtest.h> // for Message, TestPartResult, EXPECT_EQ, TestInfo, TEST_F, Test

#include <cinttypes> // for uint64_t
#include <cstddef> // for size_t
#include <functional> // for greater
#include <limits> // for numeric_limits
#include <string> // for allocator, basic_string, string
#include <string_view> // for string_view
#include <tuple> // for tie, make_tuple
#include <vector> // for vector

#include <hibf/contrib/robin_hood.hpp> // for unordered_flat_map
#include <hibf/detail/sketch/hyperloglog.hpp> // for hyperloglog
#include <hibf/detail/sketch/toolbox.hpp> // for clustering_node, entry, precompute_union_estimates_for, cluste...
#include <hibf/test/expect_range_eq.hpp> // for expect_range_eq, EXPECT_RANGE_EQ

// inherits from toolbox to test private members
struct toolbox_test : public ::testing::Test
Expand Down

0 comments on commit b76629f

Please sign in to comment.