Skip to content

Commit

Permalink
test/lib: do not include unused headers
Browse files Browse the repository at this point in the history
these unused includes were identified by clangd. see
https://clangd.llvm.org/guides/include-cleaner#unused-include-warning
for more details on the "Unused include" warning.

Signed-off-by: Kefu Chai <[email protected]>

Closes scylladb#18515
  • Loading branch information
tchaikov authored and avikivity committed May 5, 2024
1 parent 0b0e661 commit 5ca9a46
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions test/boost/filtering_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <seastar/net/inet_address.hh>

#include "test/lib/eventually.hh"
#include "test/lib/scylla_test_case.hh"
#include "test/lib/cql_test_env.hh"
#include "test/lib/cql_assertions.hh"
Expand Down
1 change: 1 addition & 0 deletions test/boost/index_with_paging_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "test/lib/scylla_test_case.hh"
#include "test/lib/cql_test_env.hh"
#include "test/lib/cql_assertions.hh"
#include "test/lib/eventually.hh"
#include "cql3/untyped_result_set.hh"
#include "cql3/query_processor.hh"
#include "transport/messages/result_message.hh"
Expand Down
1 change: 1 addition & 0 deletions test/boost/mutation_reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "sstables/generation_type.hh"
#include "test/lib/scylla_test_case.hh"
#include <seastar/testing/thread_test_case.hh>
#include "test/lib/eventually.hh"
#include "test/lib/mutation_assertions.hh"
#include "test/lib/flat_mutation_reader_assertions.hh"
#include "test/lib/sstable_utils.hh"
Expand Down
7 changes: 4 additions & 3 deletions test/boost/secondary_index_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@
*/

#include <seastar/core/coroutine.hh>
#include "test/lib/scylla_test_case.hh"
#include "test/lib/cql_test_env.hh"
#include "test/lib/cql_assertions.hh"
#include "test/lib/eventually.hh"
#include "test/lib/exception_utils.hh"
#include "test/lib/scylla_test_case.hh"
#include "test/lib/select_statement_utils.hh"
#include "transport/messages/result_message.hh"
#include "service/pager/paging_state.hh"
#include "types/map.hh"
#include "types/list.hh"
#include "types/set.hh"
#include "test/lib/exception_utils.hh"
#include "cql3/statements/select_statement.hh"
#include "test/lib/select_statement_utils.hh"
#include "utils/error_injection.hh"

using namespace std::chrono_literals;
Expand Down
1 change: 1 addition & 0 deletions test/boost/view_build_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "test/lib/cql_test_env.hh"
#include "test/lib/cql_assertions.hh"
#include "test/lib/eventually.hh"
#include "test/lib/sstable_utils.hh"
#include "schema/schema_builder.hh"
#include "test/lib/data_model.hh"
Expand Down
1 change: 1 addition & 0 deletions test/boost/view_complex_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "test/lib/scylla_test_case.hh"
#include "test/lib/cql_test_env.hh"
#include "test/lib/cql_assertions.hh"
#include "test/lib/eventually.hh"

#include "db/config.hh"

Expand Down
1 change: 1 addition & 0 deletions test/boost/view_schema_ckey_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <seastar/testing/thread_test_case.hh>
#include "test/lib/cql_test_env.hh"
#include "test/lib/cql_assertions.hh"
#include "test/lib/eventually.hh"

using namespace std::literals::chrono_literals;

Expand Down
1 change: 1 addition & 0 deletions test/boost/view_schema_pkey_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include "db/view/view_builder.hh"

#include "test/lib/eventually.hh"
#include "test/lib/scylla_test_case.hh"
#include <seastar/testing/thread_test_case.hh>
#include "test/lib/cql_test_env.hh"
Expand Down
1 change: 1 addition & 0 deletions test/boost/view_schema_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <seastar/testing/thread_test_case.hh>
#include "test/lib/cql_test_env.hh"
#include "test/lib/cql_assertions.hh"
#include "test/lib/eventually.hh"
#include "exceptions/unrecognized_entity_exception.hh"
#include "db/config.hh"
#include "types/set.hh"
Expand Down
1 change: 1 addition & 0 deletions test/lib/cql_assertions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <boost/range/adaptor/transformed.hpp>
#include <fmt/ranges.h>
#include "test/lib/cql_assertions.hh"
#include "test/lib/eventually.hh"
#include "transport/messages/result_message.hh"
#include "utils/to_string.hh"
#include "bytes.hh"
Expand Down
4 changes: 0 additions & 4 deletions test/lib/cql_test_env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#include <seastar/core/thread.hh>
#include <seastar/util/defer.hh>
#include "replica/database_fwd.hh"
#include "sstables/sstables.hh"
#include <seastar/core/do_with.hh>
#include "test/lib/cql_test_env.hh"
#include "cdc/generation_service.hh"
#include "cql3/functions/functions.hh"
Expand All @@ -29,7 +27,6 @@
#include <seastar/core/scheduling.hh>
#include <seastar/core/reactor.hh>
#include <seastar/core/coroutine.hh>
#include "utils/UUID_gen.hh"
#include "service/migration_manager.hh"
#include "service/tablet_allocator.hh"
#include "compaction/compaction_manager.hh"
Expand All @@ -46,7 +43,6 @@
#include "db/batchlog_manager.hh"
#include "schema/schema_builder.hh"
#include "test/lib/tmpdir.hh"
#include "test/lib/test_services.hh"
#include "test/lib/log.hh"
#include "unit_test_service_levels_accessor.hh"
#include "db/view/view_builder.hh"
Expand Down
1 change: 0 additions & 1 deletion test/lib/cql_test_env.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "bytes.hh"
#include "schema/schema.hh"
#include "service/tablet_allocator.hh"
#include "test/lib/eventually.hh"

namespace replica {
class database;
Expand Down
1 change: 0 additions & 1 deletion test/lib/key_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "test/lib/key_utils.hh"
#include "test/lib/random_schema.hh"
#include "test/lib/random_utils.hh"
#include "test/lib/test_utils.hh"
#include "dht/i_partitioner.hh"

namespace tests {
Expand Down
2 changes: 1 addition & 1 deletion test/lib/random_schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

#include "cql3/cql3_type.hh"
#include "mutation/mutation.hh"
#include "mutation/mutation_fragment.hh"
#include "schema/schema_builder.hh"
#include "test/lib/cql_test_env.hh"
#include "test/lib/eventually.hh"
#include "test/lib/random_schema.hh"
#include "test/lib/random_utils.hh"
#include "types/list.hh"
Expand Down
1 change: 1 addition & 0 deletions test/lib/tmpdir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include "test/lib/tmpdir.hh"
#include "utils/UUID.hh"

#include <seastar/util/alloc_failure_injector.hh>

Expand Down
2 changes: 0 additions & 2 deletions test/lib/tmpdir.hh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#include <seastar/util/std-compat.hh>

#include "utils/UUID.hh"

namespace fs = std::filesystem;

// Creates a new empty directory with arbitrary name, which will be removed
Expand Down

0 comments on commit 5ca9a46

Please sign in to comment.