File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,10 @@ template <IntegerType T>
9191 * @param node_id
9292 * @param output_buf
9393 */
94- template <bool is_auto_generated_node, int8_t length_indicator_tag, SignedIntegerType encoded_node_id_t >
94+ template <
95+ bool is_auto_generated_node,
96+ int8_t length_indicator_tag,
97+ SignedIntegerType encoded_node_id_t >
9598auto size_dependent_encode_and_serialize_schema_tree_node_id (
9699 SchemaTree::Node::id_t node_id,
97100 std::vector<int8_t >& output_buf
@@ -229,7 +232,10 @@ auto get_ones_complement(T int_val) -> T {
229232 return static_cast <T>(~int_val);
230233}
231234
232- template <bool is_auto_generated_node, int8_t length_indicator_tag, SignedIntegerType encoded_node_id_t >
235+ template <
236+ bool is_auto_generated_node,
237+ int8_t length_indicator_tag,
238+ SignedIntegerType encoded_node_id_t >
233239auto size_dependent_encode_and_serialize_schema_tree_node_id (
234240 SchemaTree::Node::id_t node_id,
235241 std::vector<int8_t >& output_buf
Original file line number Diff line number Diff line change @@ -1219,7 +1219,7 @@ TEMPLATE_TEST_CASE(
12191219 std::true_type,
12201220 std::false_type
12211221) {
1222- constexpr bool cIsAutoGeneratedKeys {TestType{}};
1222+ constexpr bool cIsAutoGeneratedNode {TestType{}};
12231223 constexpr int8_t cOneByteLengthIndicatorTag{
12241224 clp::ffi::ir_stream::cProtocol::Payload::EncodedSchemaTreeNodeIdByte
12251225 };
@@ -1233,7 +1233,7 @@ TEMPLATE_TEST_CASE(
12331233
12341234 constexpr auto cSerializationMethodToTest
12351235 = clp::ffi::ir_stream::encode_and_serialize_schema_tree_node_id<
1236- cIsAutoGeneratedKeys ,
1236+ cIsAutoGeneratedNode ,
12371237 cOneByteLengthIndicatorTag,
12381238 cTwoByteLengthIndicatorTag,
12391239 cFourByteLengthIndicatorTag>;
@@ -1274,7 +1274,7 @@ TEMPLATE_TEST_CASE(
12741274 auto const result{cDeserializationMethodToTest (tag, reader)};
12751275 REQUIRE_FALSE (result.has_error ());
12761276 auto const [is_auto_generated, deserialized_node_id]{result.value ()};
1277- REQUIRE ((cIsAutoGeneratedKeys == is_auto_generated));
1277+ REQUIRE ((cIsAutoGeneratedNode == is_auto_generated));
12781278 REQUIRE ((deserialized_node_id == node_id));
12791279 }
12801280
You can’t perform that action at this time.
0 commit comments