test cases for invalid telegrams
- too short fixed data length (invalid_length2.hex) - premature end of record at data (premature_end_of_data1.hex, premature_end_of_data2.hex) - premature end of record at DIF (premature_end_of_dif1.hex, premature_end_of_dif2.hex) - premature end of record at variable length VIF (premature_end_of_var_vif1.hex) - premature end of record at VIF (premature_end_of_vif1.hex) - too long variable length VIF (too_long_var_vif.hex) - too many DIFE (too_many_dife.hex) - too many VIFE (too_many_vife.hex) - too short variable header (too_short_header.hex)
This commit is contained in:
parent
c4ceb5c057
commit
3381d1b41d
1
test/test-frames/invalid_length2.hex
Normal file
1
test/test-frames/invalid_length2.hex
Normal file
@ -0,0 +1 @@
|
||||
68 12 12 68 08 01 73 93 92 91 90 10 00 05 69 31 65 00 00 69 00 00 3F 16
|
1
test/test-frames/premature_end_of_data1.hex
Normal file
1
test/test-frames/premature_end_of_data1.hex
Normal file
@ -0,0 +1 @@
|
||||
68 1C 1C 68 08 02 72 78 56 34 12 24 40 01 07 55 00 00 00 03 13 15 31 00 DA 02 3B 13 01 8B 60 04 C7 16
|
1
test/test-frames/premature_end_of_data2.hex
Normal file
1
test/test-frames/premature_end_of_data2.hex
Normal file
@ -0,0 +1 @@
|
||||
68 1E 1E 68 08 02 72 78 56 34 12 24 40 01 07 55 00 00 00 03 13 15 31 00 DA 02 3B 13 01 8B 60 04 37 18 16 16
|
1
test/test-frames/premature_end_of_dif1.hex
Normal file
1
test/test-frames/premature_end_of_dif1.hex
Normal file
@ -0,0 +1 @@
|
||||
68 1A 1A 68 08 02 72 78 56 34 12 24 40 01 07 55 00 00 00 03 13 15 31 00 DA 02 3B 13 01 8B 63 16
|
1
test/test-frames/premature_end_of_dif2.hex
Normal file
1
test/test-frames/premature_end_of_dif2.hex
Normal file
@ -0,0 +1 @@
|
||||
68 1B 1B 68 08 02 72 78 56 34 12 24 40 01 07 55 00 00 00 03 13 15 31 00 DA 02 3B 13 01 8B 8B EE 16
|
1
test/test-frames/premature_end_of_var_vif1.hex
Normal file
1
test/test-frames/premature_end_of_var_vif1.hex
Normal file
@ -0,0 +1 @@
|
||||
68 2E 2E 68 08 05 72 34 08 00 54 96 15 32 00 F2 00 00 00 01 FD 1B 00 02 FC 03 48 52 25 74 D4 11 22 FC 03 48 52 25 74 C8 11 12 FC 13 48 52 25 74 B4 16 5B 16
|
1
test/test-frames/premature_end_of_vif1.hex
Normal file
1
test/test-frames/premature_end_of_vif1.hex
Normal file
@ -0,0 +1 @@
|
||||
68 1B 1B 68 08 02 72 78 56 34 12 24 40 01 07 55 00 00 00 03 13 15 31 00 DA 02 3B 13 01 8B 60 C3 16
|
1
test/test-frames/too_long_var_vif.hex
Normal file
1
test/test-frames/too_long_var_vif.hex
Normal file
@ -0,0 +1 @@
|
||||
68 2E 2E 68 08 05 72 34 08 00 54 96 15 32 00 F2 00 00 00 01 FD 1B 00 02 FC 03 48 52 25 74 D4 11 22 FC 03 48 52 25 74 C8 11 12 FC F3 48 52 25 74 B4 16 3B 16
|
1
test/test-frames/too_many_dife.hex
Normal file
1
test/test-frames/too_many_dife.hex
Normal file
@ -0,0 +1 @@
|
||||
68 29 29 68 08 02 72 78 56 34 12 24 40 01 07 55 00 00 00 03 13 15 31 00 DA 02 3B 13 01 8B 8B 8B 8B 8B 8B 8B 8B 8B 8B 8B 60 04 37 18 02 86 16
|
1
test/test-frames/too_many_vife.hex
Normal file
1
test/test-frames/too_many_vife.hex
Normal file
@ -0,0 +1 @@
|
||||
68 2A 2A 68 08 02 72 78 56 34 12 24 40 01 07 55 00 00 00 03 13 15 31 00 DA 02 3B 13 01 8B 60 84 84 84 84 84 84 84 84 84 84 84 04 37 18 02 C4 16
|
1
test/test-frames/too_short_header.hex
Normal file
1
test/test-frames/too_short_header.hex
Normal file
@ -0,0 +1 @@
|
||||
68 08 08 68 08 02 72 78 56 34 12 24 B4 16
|
Loading…
x
Reference in New Issue
Block a user