Skip to content

Commit

Permalink
asn1_ber,goreleaser: Convert CRLF to LF in asn1 xml tests, hopefully …
Browse files Browse the repository at this point in the history
…fixes goreleaer workspace dirty error
  • Loading branch information
wader committed Jul 24, 2022
1 parent 1d369bc commit 0326eeb
Show file tree
Hide file tree
Showing 48 changed files with 1,116 additions and 1,116 deletions.
38 changes: 19 additions & 19 deletions format/asn1/testdata/tc1.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0"?>
<ASN1_TYPE>
<identification_block>
<warnings>
<warning>Tag too long, represented as hex-coded</warning>
</warnings>
<tag_class>CONTEXT_SPECIFIC</tag_class>
<is_constructed>false</is_constructed>
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>1</length>
</length_block>
<value_block>
<value_hex>40</value_hex>
</value_block>
</ASN1_TYPE>
<?xml version="1.0"?>
<ASN1_TYPE>
<identification_block>
<warnings>
<warning>Tag too long, represented as hex-coded</warning>
</warnings>
<tag_class>CONTEXT_SPECIFIC</tag_class>
<is_constructed>false</is_constructed>
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>1</length>
</length_block>
<value_block>
<value_hex>40</value_hex>
</value_block>
</ASN1_TYPE>
68 changes: 34 additions & 34 deletions format/asn1/testdata/tc10.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<?xml version="1.0"?>
<REAL>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>7</length>
</length_block>
<value_block>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<warnings>
<warning>Needlessly long format</warning>
</warnings>
<is_hex_only>false</is_hex_only>
<value_dec>-5</value_dec>
</exponent_block>
<mantissa_block>
<is_hex_only>false</is_hex_only>
<value_dec>5</value_dec>
</mantissa_block>
<value_dec>0.156250</value_dec>
</value_block>
</REAL>
<?xml version="1.0"?>
<REAL>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>7</length>
</length_block>
<value_block>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<warnings>
<warning>Needlessly long format</warning>
</warnings>
<is_hex_only>false</is_hex_only>
<value_dec>-5</value_dec>
</exponent_block>
<mantissa_block>
<is_hex_only>false</is_hex_only>
<value_dec>5</value_dec>
</mantissa_block>
<value_dec>0.156250</value_dec>
</value_block>
</REAL>
40 changes: 20 additions & 20 deletions format/asn1/testdata/tc11.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0"?>
<REAL>
<error>Wrong NR form</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>9</length>
</length_block>
<value_block>
<error>Wrong NR form</error>
<information_block>
<error>Wrong NR form</error>
</information_block>
</value_block>
</REAL>
<?xml version="1.0"?>
<REAL>
<error>Wrong NR form</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>9</length>
</length_block>
<value_block>
<error>Wrong NR form</error>
<information_block>
<error>Wrong NR form</error>
</information_block>
</value_block>
</REAL>
40 changes: 20 additions & 20 deletions format/asn1/testdata/tc12.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0"?>
<REAL>
<error>Unknown special REAL value</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>1</length>
</length_block>
<value_block>
<error>Unknown special REAL value</error>
<information_block>
<error>Unknown special REAL value</error>
</information_block>
</value_block>
</REAL>
<?xml version="1.0"?>
<REAL>
<error>Unknown special REAL value</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>1</length>
</length_block>
<value_block>
<error>Unknown special REAL value</error>
<information_block>
<error>Unknown special REAL value</error>
</information_block>
</value_block>
</REAL>
76 changes: 38 additions & 38 deletions format/asn1/testdata/tc13.xml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
<?xml version="1.0"?>
<REAL>
<error>End of input reached before message was fully decoded</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<warnings>
<warning>Needlessly long encoded length</warning>
<warning>Unneccesary usage of long length form</warning>
</warnings>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>true</long_form_used>
<length>7</length>
</length_block>
<value_block>
<error>End of input reached before message was fully decoded</error>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<warnings>
<warning>Needlessly long format</warning>
</warnings>
<is_hex_only>false</is_hex_only>
<value_dec>-5</value_dec>
</exponent_block>
<mantissa_block>
<error>End of input reached before message was fully decoded</error>
</mantissa_block>
</value_block>
</REAL>
<?xml version="1.0"?>
<REAL>
<error>End of input reached before message was fully decoded</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<warnings>
<warning>Needlessly long encoded length</warning>
<warning>Unneccesary usage of long length form</warning>
</warnings>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>true</long_form_used>
<length>7</length>
</length_block>
<value_block>
<error>End of input reached before message was fully decoded</error>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<warnings>
<warning>Needlessly long format</warning>
</warnings>
<is_hex_only>false</is_hex_only>
<value_dec>-5</value_dec>
</exponent_block>
<mantissa_block>
<error>End of input reached before message was fully decoded</error>
</mantissa_block>
</value_block>
</REAL>
62 changes: 31 additions & 31 deletions format/asn1/testdata/tc14.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<?xml version="1.0"?>
<REAL>
<error>End of input reached before message was fully decoded</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<warnings>
<warning>Needlessly long encoded length</warning>
<warning>Unneccesary usage of long length form</warning>
</warnings>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>true</long_form_used>
<length>7</length>
</length_block>
<value_block>
<error>End of input reached before message was fully decoded</error>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<error>End of input reached before message was fully decoded</error>
</exponent_block>
</value_block>
</REAL>
<?xml version="1.0"?>
<REAL>
<error>End of input reached before message was fully decoded</error>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<warnings>
<warning>Needlessly long encoded length</warning>
<warning>Unneccesary usage of long length form</warning>
</warnings>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>true</long_form_used>
<length>7</length>
</length_block>
<value_block>
<error>End of input reached before message was fully decoded</error>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<error>End of input reached before message was fully decoded</error>
</exponent_block>
</value_block>
</REAL>
68 changes: 34 additions & 34 deletions format/asn1/testdata/tc15.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<?xml version="1.0"?>
<REAL>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>12</length>
</length_block>
<value_block>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<warnings>
<warning>Too big REAL exponent block for decoding, hex only</warning>
</warnings>
<is_hex_only>true</is_hex_only>
<value_hex>09 7F FF FF FF FF FF FF FF FB</value_hex>
</exponent_block>
<mantissa_block>
<is_hex_only>false</is_hex_only>
<value_dec>5</value_dec>
</mantissa_block>
<value_hex>5 * 2^{09 7F FF FF FF FF FF FF FF FB}</value_hex>
</value_block>
</REAL>
<?xml version="1.0"?>
<REAL>
<identification_block>
<tag_class>UNIVERSAL</tag_class>
<is_constructed>false</is_constructed>
<value_dec>9</value_dec>
</identification_block>
<length_block>
<is_indefinite_form>false</is_indefinite_form>
<long_form_used>false</long_form_used>
<length>12</length>
</length_block>
<value_block>
<information_block>
<is_special_value>false</is_special_value>
<base>2</base>
<scaling_factor>0</scaling_factor>
<is_negative>false</is_negative>
<exponent_format>4</exponent_format>
</information_block>
<exponent_block>
<warnings>
<warning>Too big REAL exponent block for decoding, hex only</warning>
</warnings>
<is_hex_only>true</is_hex_only>
<value_hex>09 7F FF FF FF FF FF FF FF FB</value_hex>
</exponent_block>
<mantissa_block>
<is_hex_only>false</is_hex_only>
<value_dec>5</value_dec>
</mantissa_block>
<value_hex>5 * 2^{09 7F FF FF FF FF FF FF FF FB}</value_hex>
</value_block>
</REAL>
Loading

0 comments on commit 0326eeb

Please sign in to comment.