@@ -159,11 +159,7 @@ TEST_CASE("Integration: RAW APDU") {
159159 dlms::test_data::raw_salzburg_netz_frame,
160160 dlms::test_data::raw_salzburg_netz_expected_count,
161161 dlms::test_data::raw_salzburg_netz_expected_strings,
162- dlms::test_data::raw_salzburg_netz_expected_floats,
163- [](dlms_parser::DlmsParser& p) {
164- p.register_pattern (" TO, TDTM" );
165- p.register_pattern (" S(TO, TV)" );
166- }
162+ dlms::test_data::raw_salzburg_netz_expected_floats
167163 );
168164 }
169165
@@ -188,8 +184,7 @@ TEST_CASE("Integration: HDLC") {
188184 dlms::test_data::iskra550_raw_frame,
189185 dlms::test_data::iskra550_expected_count,
190186 dlms::test_data::iskra550_expected_strings,
191- dlms::test_data::iskra550_expected_floats,
192- [](dlms_parser::DlmsParser& p) { p.register_pattern (" S(TO, TV)" ); }
187+ dlms::test_data::iskra550_expected_floats
193188 );
194189 }
195190
@@ -200,8 +195,7 @@ TEST_CASE("Integration: HDLC") {
200195 duplicated_frame,
201196 dlms::test_data::iskra550_expected_count,
202197 dlms::test_data::iskra550_expected_strings,
203- dlms::test_data::iskra550_expected_floats,
204- [](dlms_parser::DlmsParser& p) { p.register_pattern (" S(TO, TV)" ); }
198+ dlms::test_data::iskra550_expected_floats
205199 );
206200 }
207201
@@ -220,11 +214,7 @@ TEST_CASE("Integration: HDLC") {
220214 dlms::test_data::norway_han_1phase_raw_frame,
221215 dlms::test_data::norway_han_1phase_expected_count,
222216 dlms::test_data::norway_han_1phase_expected_strings,
223- dlms::test_data::norway_han_1phase_expected_floats,
224- [](dlms_parser::DlmsParser& p) {
225- p.register_pattern (" S(TO, TV, TSU)" );
226- p.register_pattern (" S(TO, TV)" );
227- }
217+ dlms::test_data::norway_han_1phase_expected_floats
228218 );
229219 }
230220
@@ -233,11 +223,7 @@ TEST_CASE("Integration: HDLC") {
233223 dlms::test_data::norway_han_3phase_raw_frame,
234224 dlms::test_data::norway_han_3phase_expected_count,
235225 dlms::test_data::norway_han_3phase_expected_strings,
236- dlms::test_data::norway_han_3phase_expected_floats,
237- [](dlms_parser::DlmsParser& p) {
238- p.register_pattern (" DateTime" , " F, S(TO, TDTM)" );
239- p.register_pattern (" Obis-Value-Scaler-Unit" , " S(TO, TV, TSU)" );
240- }
226+ dlms::test_data::norway_han_3phase_expected_floats
241227 );
242228 }
243229
@@ -249,9 +235,6 @@ TEST_CASE("Integration: HDLC") {
249235 dlms::test_data::hdlc_landis_gyr_zmf100_expected_floats,
250236 [](dlms_parser::DlmsParser& p) {
251237 p.set_skip_crc_check (true );
252- p.register_pattern (" S(TO, TDTM)" );
253- p.register_pattern (" S(TO, TV)" );
254- p.register_pattern (" TOW, TV, TSU" );
255238 }
256239 );
257240 }
@@ -274,7 +257,6 @@ TEST_CASE("Integration: HDLC") {
274257 [](dlms_parser::DlmsParser& p) {
275258 p.set_decryption_key (dlms::test_data::hdlc_landis_gyr_e450_key);
276259 p.register_pattern (" DateTime" , " F, TDTM" );
277- p.register_pattern (" Obis-Value Pair" ," TO, TV" );
278260 }
279261 );
280262 }
@@ -288,7 +270,6 @@ TEST_CASE("Integration: HDLC") {
288270 [](dlms_parser::DlmsParser& p) {
289271 p.set_decryption_key (dlms::test_data::hdlc_landis_gyr_e450_key);
290272 p.register_pattern (" DateTime" , " F, TDTM" );
291- p.register_pattern (" Obis-Value Pair" , " TO, TV" );
292273 }
293274 );
294275 }
@@ -302,7 +283,6 @@ TEST_CASE("Integration: HDLC") {
302283 [](dlms_parser::DlmsParser& p) {
303284 p.set_decryption_key (dlms::test_data::hdlc_landis_gyr_e450_key);
304285 p.register_pattern (" DateTime" , " F, TDTM" );
305- p.register_pattern (" Obis-Value Pair" , " TO, TV" );
306286 }
307287 );
308288 }
@@ -315,7 +295,7 @@ TEST_CASE("Integration: HDLC") {
315295 dlms::test_data::hdlc_lgz_e450_2_expected_floats,
316296 [](dlms_parser::DlmsParser& p) {
317297 p.set_decryption_key (dlms::test_data::hdlc_lgz_e450_2_key);
318- p.register_pattern (" TO, TV " );
298+ p.register_pattern (" DateTime " , " F, TDTM " );
319299 }
320300 );
321301 }
@@ -329,7 +309,6 @@ TEST_CASE("Integration: HDLC") {
329309 [](dlms_parser::DlmsParser& p) {
330310 p.set_decryption_key (dlms::test_data::hdlc_kamstrup_omnipower_key);
331311 p.register_pattern (" Obis List Ver" , " F, TSTR" );
332- p.register_pattern (" Code-Value Pair" , " TO, TV" );
333312 }
334313 );
335314 }
@@ -344,7 +323,6 @@ TEST_CASE("Integration: HDLC") {
344323 p.set_decryption_key (dlms::test_data::hdlc_kamstrup_omnipower_key);
345324 p.set_authentication_key (dlms::test_data::hdlc_kamstrup_omnipower_auth_key);
346325 p.register_pattern (" Obis List Ver" , " F, TSTR" );
347- p.register_pattern (" Code-Value Pair" , " TO, TV" );
348326 }
349327 );
350328 }
@@ -359,7 +337,6 @@ TEST_CASE("Integration: HDLC") {
359337 p.set_decryption_key (dlms::test_data::hdlc_kamstrup_omnipower_key);
360338 p.set_authentication_key (dlms::test_data::hdlc_kamstrup_omnipower_auth_key);
361339 p.register_pattern (" Obis List Ver" , " F, TSTR" );
362- p.register_pattern (" Code-Value Pair" , " TO, TV" );
363340 }
364341 );
365342 }
@@ -374,7 +351,6 @@ TEST_CASE("Integration: HDLC") {
374351 p.set_decryption_key (dlms::test_data::hdlc_kamstrup_omnipower_key);
375352 p.set_authentication_key (dlms::test_data::hdlc_kamstrup_omnipower_auth_key);
376353 p.register_pattern (" Obis List Ver" , " F, TSTR" );
377- p.register_pattern (" Code-Value Pair" , " TO, TV" );
378354 }
379355 );
380356 }
@@ -418,7 +394,7 @@ TEST_CASE("Integration: MBus") {
418394 p.set_decryption_key (dlms::test_data::mbus_netz_noe_p1_key);
419395 const uint8_t meter_obis[] = {0 , 0 , 96 , 1 , 0 , 255 }; // 0.0.96.1.0.255
420396 p.register_pattern (" MeterID" , " L, TSTR" , 0 , meter_obis);
421- p.register_pattern (" Obis-Value-Scaler-Unit " , " S(TO, TV, TSU) " );
397+ p.register_pattern (" DateTime " , " F, TDTM " );
422398 }
423399 );
424400 }
@@ -435,7 +411,7 @@ TEST_CASE("Integration: MBus") {
435411 p.set_decryption_key (dlms::test_data::mbus_netz_noe_p1_key);
436412 const uint8_t meter_obis[] = { 0 , 0 , 96 , 1 , 0 , 255 }; // 0.0.96.1.0.255
437413 p.register_pattern (" MeterID" , " L, TSTR" , 0 , meter_obis);
438- p.register_pattern (" Obis-Value-Scaler-Unit " , " S(TO, TV, TSU) " );
414+ p.register_pattern (" DateTime " , " F, TDTM " );
439415 }
440416 );
441417 }
0 commit comments