@@ -1008,6 +1008,7 @@ TEST_CASE("TracerConfig propagation styles") {
10081008 REQUIRE (finalized);
10091009 REQUIRE (!finalized->injection_styles .datadog );
10101010 REQUIRE (finalized->injection_styles .b3 );
1011+ REQUIRE (!finalized->injection_styles .none );
10111012 }
10121013
10131014 SECTION (" parsing" ) {
@@ -1020,20 +1021,24 @@ TEST_CASE("TracerConfig propagation styles") {
10201021
10211022 // clang-format off
10221023 auto test_case = GENERATE (values<TestCase>({
1023- {__LINE__, " Datadog" , x, {true , false }},
1024- {__LINE__, " DaTaDoG" , x, {true , false }},
1025- {__LINE__, " B3" , x, {false , true }},
1026- {__LINE__, " b3" , x, {false , true }},
1027- {__LINE__, " Datadog B3" , x, {true , true }},
1028- {__LINE__, " B3 Datadog" , x, {true , true }},
1029- {__LINE__, " b3 datadog" , x, {true , true }},
1030- {__LINE__, " b3, datadog" , x, {true , true }},
1031- {__LINE__, " b3,datadog" , x, {true , true }},
1032- {__LINE__, " b3, datadog" , x, {true , true }},
1024+ {__LINE__, " Datadog" , x, {true , false , false }},
1025+ {__LINE__, " DaTaDoG" , x, {true , false , false }},
1026+ {__LINE__, " B3" , x, {false , true , false }},
1027+ {__LINE__, " b3" , x, {false , true , false }},
1028+ {__LINE__, " b3MULTI" , x, {false , true , false }},
1029+ {__LINE__, " b3, b3multi" , x, {false , true , false }},
1030+ {__LINE__, " Datadog B3" , x, {true , true , false }},
1031+ {__LINE__, " Datadog B3 none" , x, {true , true , true }},
1032+ {__LINE__, " NONE" , x, {false , false , true }},
1033+ {__LINE__, " B3 Datadog" , x, {true , true , false }},
1034+ {__LINE__, " b3 datadog" , x, {true , true , false }},
1035+ {__LINE__, " b3, datadog" , x, {true , true , false }},
1036+ {__LINE__, " b3,datadog" , x, {true , true , false }},
1037+ {__LINE__, " b3, datadog" , x, {true , true , false }},
10331038 {__LINE__, " b3,,datadog" , Error::UNKNOWN_PROPAGATION_STYLE},
10341039 {__LINE__, " b3,datadog,w3c" , Error::UNKNOWN_PROPAGATION_STYLE},
1035- {__LINE__, " b3,datadog,datadog" , x, {true , true }},
1036- {__LINE__, " b3 b3 b3, b3 , b3, b3, b3 , b3 b3 b3 " , x, {false , true }},
1040+ {__LINE__, " b3,datadog,datadog" , x, {true , true , false }},
1041+ {__LINE__, " b3 b3 b3, b3 , b3, b3, b3 , b3 b3 b3 " , x, {false , true , false }},
10371042 }));
10381043 // clang-format on
10391044
@@ -1052,6 +1057,8 @@ TEST_CASE("TracerConfig propagation styles") {
10521057 test_case.expected_styles .datadog );
10531058 REQUIRE (finalized->injection_styles .b3 ==
10541059 test_case.expected_styles .b3 );
1060+ REQUIRE (finalized->injection_styles .none ==
1061+ test_case.expected_styles .none );
10551062 }
10561063 }
10571064 }
@@ -1064,11 +1071,13 @@ TEST_CASE("TracerConfig propagation styles") {
10641071 REQUIRE (finalized);
10651072 REQUIRE (finalized->extraction_styles .datadog );
10661073 REQUIRE (!finalized->extraction_styles .b3 );
1074+ REQUIRE (!finalized->extraction_styles .none );
10671075 }
10681076
10691077 SECTION (" need at least one" ) {
10701078 config.extraction_styles .datadog = false ;
10711079 config.extraction_styles .b3 = false ;
1080+ config.extraction_styles .none = false ;
10721081 auto finalized = finalize_config (config);
10731082 REQUIRE (!finalized);
10741083 REQUIRE (finalized.error ().code == Error::MISSING_SPAN_EXTRACTION_STYLE);
@@ -1081,6 +1090,7 @@ TEST_CASE("TracerConfig propagation styles") {
10811090 REQUIRE (finalized);
10821091 REQUIRE (!finalized->extraction_styles .datadog );
10831092 REQUIRE (finalized->extraction_styles .b3 );
1093+ REQUIRE (!finalized->extraction_styles .none );
10841094 }
10851095
10861096 // It's the same as for injection styles, so let's omit most of the
0 commit comments