Skip to content

Commit

Permalink
Fix unit test case name
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 committed Sep 17, 2024
1 parent 9bf3e42 commit 6742e64
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/core/tests/test-ffi_IrUnitHandlerInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ class TriviallyInheritedIrUnitHandler : public TrivialIrUnitHandler {};
* `clp::ffi::ir_stream::IrUnitHandlerInterface` and ensure they don't return errors.
* @param handler
*/
auto simulate_ir_unit_handler_calling(clp::ffi::ir_stream::IrUnitHandlerInterface auto& handler
auto test_ir_unit_handler_interface(clp::ffi::ir_stream::IrUnitHandlerInterface auto& handler
) -> void;

auto simulate_ir_unit_handler(clp::ffi::ir_stream::IrUnitHandlerInterface auto& handler) -> void {
auto test_ir_unit_handler_interface(clp::ffi::ir_stream::IrUnitHandlerInterface auto& handler
) -> void {
auto test_log_event_result{
KeyValuePairLogEvent::create(std::make_shared<SchemaTree>(), {}, cTestUtcOffset)
};
Expand All @@ -114,14 +115,14 @@ auto simulate_ir_unit_handler(clp::ffi::ir_stream::IrUnitHandlerInterface auto&
} // namespace

TEMPLATE_TEST_CASE(
"test_ir_unit_handler_basic",
"test_ir_unit_handler_interface_basic",
"[ffi][ir_stream]",
TrivialIrUnitHandler,
TriviallyInheritedIrUnitHandler
) {
TestType handler;
REQUIRE_FALSE(handler.is_complete());
simulate_ir_unit_handler(handler);
test_ir_unit_handler_interface(handler);

REQUIRE((handler.get_utc_offset_delta() == cTestUtcOffsetDelta));
auto const& optional_log_event{handler.get_log_event()};
Expand Down

0 comments on commit 6742e64

Please sign in to comment.