Skip to content

Commit 6cd0e7f

Browse files
committed
Revert "Improve test coverage of Phlex code"
This reverts commit 73af4a6.
1 parent e39fd1d commit 6cd0e7f

File tree

5 files changed

+0
-176
lines changed

5 files changed

+0
-176
lines changed

phlex/model/identifier.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@ namespace phlex::experimental {
5757
inline std::string_view format_as(identifier const& id) { return std::string_view(id); }
5858
}
5959

60-
template <>
61-
struct fmt::formatter<phlex::experimental::identifier> : formatter<std::string_view> {
62-
auto format(phlex::experimental::identifier const& id, format_context& ctx) const
63-
{
64-
return formatter<std::string_view>::format(std::string_view(id), ctx);
65-
}
66-
};
67-
6860
template <>
6961
struct std::hash<phlex::experimental::identifier> {
7062
std::size_t operator()(phlex::experimental::identifier const& id) const noexcept

test/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@ cet_test(
204204
cet_test(product_query USE_CATCH2_MAIN SOURCE product_query.cpp LIBRARIES
205205
phlex::core
206206
)
207-
cet_test(core_misc_test USE_CATCH2_MAIN SOURCE core_misc_test.cpp LIBRARIES
208-
phlex::core
209-
Boost::json
210-
)
211207
cet_test(
212208
provider_test
213209
USE_CATCH2_MAIN

test/core_misc_test.cpp

Lines changed: 0 additions & 107 deletions
This file was deleted.

test/data_cell_index.cpp

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -23,50 +23,3 @@ TEST_CASE("Verify independent hashes", "[data model]")
2323
CHECK(event_760->hash() != event_4999->hash());
2424
CHECK(event_760->layer_hash() == event_4999->layer_hash());
2525
}
26-
27-
TEST_CASE("data_cell_index methods", "[data model]")
28-
{
29-
auto base = data_cell_index::base_ptr();
30-
auto run0 = base->make_child(0, "run");
31-
auto run1 = base->make_child(1, "run");
32-
33-
SECTION("Comparisons")
34-
{
35-
CHECK(*run0 < *run1);
36-
CHECK_FALSE(*run1 < *run0);
37-
CHECK_FALSE(*run0 < *run0);
38-
39-
auto subrun0 = run0->make_child(0, "subrun");
40-
auto subrun1 = run0->make_child(1, "subrun");
41-
CHECK(*subrun0 < *subrun1);
42-
CHECK(*run0 < *subrun0);
43-
}
44-
45-
SECTION("to_string")
46-
{
47-
auto subrun = run0->make_child(5, "subrun");
48-
CHECK(subrun->to_string() == "[run:0, subrun:5]");
49-
CHECK(base->to_string() == "[]");
50-
51-
auto nameless = base->make_child(10, "");
52-
CHECK(nameless->to_string() == "[10]");
53-
}
54-
55-
SECTION("Parent lookup")
56-
{
57-
auto subrun = run0->make_child(5, "subrun");
58-
auto event = subrun->make_child(100, "event");
59-
60-
CHECK(event->parent("subrun") == subrun);
61-
CHECK(event->parent("run") == run0);
62-
CHECK(event->parent("nonexistent") == nullptr);
63-
}
64-
65-
SECTION("Layer path")
66-
{
67-
auto subrun = run0->make_child(5, "subrun");
68-
CHECK(subrun->layer_path() == "/job/run/subrun");
69-
}
70-
71-
SECTION("Base access") { CHECK(&data_cell_index::base() == data_cell_index::base_ptr().get()); }
72-
}

test/identifier.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,5 @@ int main()
6565
}
6666
}
6767
assert(ok);
68-
69-
// Additional coverage for identifier edge cases
70-
identifier id1("abc");
71-
identifier id2("def");
72-
assert(id1 == id1);
73-
assert(id1 != id2);
74-
assert(id1 < id2 || id2 < id1);
75-
assert(id1 <= id1);
76-
assert(id1 >= id1);
77-
7868
return 0;
7969
}

0 commit comments

Comments
 (0)