diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 13:54:51 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 13:54:51 +0300 |
| commit | 46e08f3bcb88ddfb2984ef67fce9e9ff0abafb8e (patch) | |
| tree | 69e555f9f7f22442f5d087e58256cf1808c2b749 /bitreader_test.go | |
| parent | prevent negative bit parameters by using uint64 (diff) | |
| download | bitreader-1.4.3.tar.gz bitreader-1.4.3.tar.bz2 bitreader-1.4.3.zip | |
Diffstat (limited to '')
| -rw-r--r-- | bitreader_test.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bitreader_test.go b/bitreader_test.go index acd980e..588590a 100644 --- a/bitreader_test.go +++ b/bitreader_test.go | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | // BitReader is a simple bit reader with big/little-endian support for golang. | 1 | // BitReader is a simple bit reader with big/little-endian support for golang. |
| 2 | // %83.2 coerage | 2 | // %83.6 coerage |
| 3 | package bitreader | 3 | package bitreader |
| 4 | 4 | ||
| 5 | import ( | 5 | import ( |
| @@ -616,7 +616,7 @@ func TestReader_TryReadFloat64(t *testing.T) { | |||
| 616 | 616 | ||
| 617 | func TestReader_TryReadBits(t *testing.T) { | 617 | func TestReader_TryReadBits(t *testing.T) { |
| 618 | type args struct { | 618 | type args struct { |
| 619 | bits int | 619 | bits uint64 |
| 620 | } | 620 | } |
| 621 | tests := []struct { | 621 | tests := []struct { |
| 622 | name string | 622 | name string |
| @@ -662,7 +662,7 @@ func TestReader_TryReadBits(t *testing.T) { | |||
| 662 | 662 | ||
| 663 | func TestReader_TryReadBytes(t *testing.T) { | 663 | func TestReader_TryReadBytes(t *testing.T) { |
| 664 | type args struct { | 664 | type args struct { |
| 665 | bytes int | 665 | bytes uint64 |
| 666 | } | 666 | } |
| 667 | tests := []struct { | 667 | tests := []struct { |
| 668 | name string | 668 | name string |
| @@ -744,7 +744,7 @@ func TestReader_TryReadString(t *testing.T) { | |||
| 744 | 744 | ||
| 745 | func TestReader_TryReadStringLength(t *testing.T) { | 745 | func TestReader_TryReadStringLength(t *testing.T) { |
| 746 | type args struct { | 746 | type args struct { |
| 747 | length int | 747 | length uint64 |
| 748 | } | 748 | } |
| 749 | tests := []struct { | 749 | tests := []struct { |
| 750 | name string | 750 | name string |
| @@ -803,7 +803,7 @@ func TestReader_TryReadStringLength(t *testing.T) { | |||
| 803 | 803 | ||
| 804 | func TestReader_TryReadBitsToSlice(t *testing.T) { | 804 | func TestReader_TryReadBitsToSlice(t *testing.T) { |
| 805 | type args struct { | 805 | type args struct { |
| 806 | bits int | 806 | bits uint64 |
| 807 | } | 807 | } |
| 808 | tests := []struct { | 808 | tests := []struct { |
| 809 | name string | 809 | name string |
| @@ -875,7 +875,7 @@ func TestReader_TryReadBitsToSlice(t *testing.T) { | |||
| 875 | 875 | ||
| 876 | func TestReader_TryReadBytesToSlice(t *testing.T) { | 876 | func TestReader_TryReadBytesToSlice(t *testing.T) { |
| 877 | type args struct { | 877 | type args struct { |
| 878 | bytes int | 878 | bytes uint64 |
| 879 | } | 879 | } |
| 880 | tests := []struct { | 880 | tests := []struct { |
| 881 | name string | 881 | name string |
| @@ -1012,7 +1012,7 @@ func TestReader_ReadBool(t *testing.T) { | |||
| 1012 | 1012 | ||
| 1013 | func TestReader_ReadBits(t *testing.T) { | 1013 | func TestReader_ReadBits(t *testing.T) { |
| 1014 | type args struct { | 1014 | type args struct { |
| 1015 | bits int | 1015 | bits uint64 |
| 1016 | } | 1016 | } |
| 1017 | tests := []struct { | 1017 | tests := []struct { |
| 1018 | name string | 1018 | name string |
| @@ -1064,7 +1064,7 @@ func TestReader_ReadBits(t *testing.T) { | |||
| 1064 | 1064 | ||
| 1065 | func TestReader_ReadBytes(t *testing.T) { | 1065 | func TestReader_ReadBytes(t *testing.T) { |
| 1066 | type args struct { | 1066 | type args struct { |
| 1067 | bytes int | 1067 | bytes uint64 |
| 1068 | } | 1068 | } |
| 1069 | tests := []struct { | 1069 | tests := []struct { |
| 1070 | name string | 1070 | name string |
| @@ -1158,7 +1158,7 @@ func TestReader_ReadString(t *testing.T) { | |||
| 1158 | 1158 | ||
| 1159 | func TestReader_ReadStringLength(t *testing.T) { | 1159 | func TestReader_ReadStringLength(t *testing.T) { |
| 1160 | type args struct { | 1160 | type args struct { |
| 1161 | length int | 1161 | length uint64 |
| 1162 | } | 1162 | } |
| 1163 | tests := []struct { | 1163 | tests := []struct { |
| 1164 | name string | 1164 | name string |
| @@ -1223,7 +1223,7 @@ func TestReader_ReadStringLength(t *testing.T) { | |||
| 1223 | 1223 | ||
| 1224 | func TestReader_ReadBitsToSlice(t *testing.T) { | 1224 | func TestReader_ReadBitsToSlice(t *testing.T) { |
| 1225 | type args struct { | 1225 | type args struct { |
| 1226 | bits int | 1226 | bits uint64 |
| 1227 | } | 1227 | } |
| 1228 | tests := []struct { | 1228 | tests := []struct { |
| 1229 | name string | 1229 | name string |
| @@ -1301,7 +1301,7 @@ func TestReader_ReadBitsToSlice(t *testing.T) { | |||
| 1301 | 1301 | ||
| 1302 | func TestReader_ReadBytesToSlice(t *testing.T) { | 1302 | func TestReader_ReadBytesToSlice(t *testing.T) { |
| 1303 | type args struct { | 1303 | type args struct { |
| 1304 | bytes int | 1304 | bytes uint64 |
| 1305 | } | 1305 | } |
| 1306 | tests := []struct { | 1306 | tests := []struct { |
| 1307 | name string | 1307 | name string |