Skip to content

Commit 8d78a72

Browse files
committed
formatting
1 parent 86bf3fc commit 8d78a72

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

serialization/serialization_test.go

+18-10
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ func TestDecodeFixed(t *testing.T) {
3838
err string
3939
}{
4040
{
41-
[]byte{0xee, 0x81, 0x02, 0xc1, 0x02, 0x01, 0x03, 0x41, 0x03, 0x81, 0x03, 0xc1, 0x03, 0xc5, 0x03, 0x22,
42-
0x22, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03},
41+
[]byte{
42+
0xee, 0x81, 0x02, 0xc1, 0x02, 0x01, 0x03, 0x41, 0x03, 0x81, 0x03, 0xc1, 0x03, 0xc5, 0x03, 0x22,
43+
0x22, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03,
44+
},
4345
16,
4446
[]byte{0x77, 0xa0, 0xb0, 0xc0, 0xd0, 0xe0, 0xf0, 0xf1, 0x11, 0x11, 0x77, 0xff, 0x77, 0xff, 0x77, 0xff},
4547
"",
@@ -57,8 +59,10 @@ func TestDecodeFixed(t *testing.T) {
5759
"data truncated",
5860
},
5961
{
60-
[]byte{0xee, 0x81, 0x04, 0xc1, 0x02, 0x01, 0x03, 0x41, 0x03, 0x81, 0x03, 0xc1, 0x03, 0xc5, 0x03, 0x22,
61-
0x22, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03},
62+
[]byte{
63+
0xee, 0x81, 0x04, 0xc1, 0x02, 0x01, 0x03, 0x41, 0x03, 0x81, 0x03, 0xc1, 0x03, 0xc5, 0x03, 0x22,
64+
0x22, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03, 0xee, 0xfd, 0x03,
65+
},
6266
16,
6367
[]byte{},
6468
"unknown decoding for",
@@ -148,7 +152,7 @@ func TestDecodeVar(t *testing.T) {
148152
"",
149153
},
150154
{
151-
[]byte{0xc3, 02, 0x0b},
155+
[]byte{0xc3, 0o2, 0x0b},
152156
true,
153157
uint64(90200),
154158
"",
@@ -215,10 +219,12 @@ func TestDecodeVar(t *testing.T) {
215219
}
216220

217221
func TestUmarshal_event1(t *testing.T) {
218-
data := []byte{0x2, 0x76, 0x0, 0x0, 0x2, 0x2, 0x25, 0x2, 0xdc, 0xf0, 0x9, 0x2, 0x30, 0xf9, 0x3, 0x22, 0xbd, 0x3,
222+
data := []byte{
223+
0x2, 0x76, 0x0, 0x0, 0x2, 0x2, 0x25, 0x2, 0xdc, 0xf0, 0x9, 0x2, 0x30, 0xf9, 0x3, 0x22, 0xbd, 0x3,
219224
0xad, 0x2, 0x21, 0x2, 0x44, 0x44, 0x5a, 0x68, 0x51, 0x3, 0x22, 0x4, 0x4, 0x6, 0xc, 0x66, 0x6f, 0x6f, 0x62,
220225
0x61, 0x7a, 0x8, 0x0, 0xa, 0x4, 0xc, 0x7f, 0x15, 0x83, 0x22, 0x2d, 0x5c, 0x2e, 0x6, 0x10, 0x49, 0x3, 0x12,
221-
0xc3, 0x2, 0xb}
226+
0xc3, 0x2, 0xb,
227+
}
222228

223229
msg := Message{
224230
Format: Format{
@@ -291,16 +297,18 @@ func TestUmarshal_event1(t *testing.T) {
291297
ID: 0,
292298
Type: FieldIntFixed{
293299
Length: 1,
294-
Value: []uint8{01},
300+
Value: []uint8{0o1},
295301
},
296302
},
297303
{
298304
Name: "uuid",
299305
ID: 1,
300306
Type: FieldIntFixed{
301307
Length: 16,
302-
Value: []uint8{0x89, 0x6e, 0x78, 0x82, 0x18, 0xfe, 0x11, 0xef, 0xab,
303-
0x88, 0x22, 0x22, 0x2d, 0x34, 0xd4, 0x11},
308+
Value: []uint8{
309+
0x89, 0x6e, 0x78, 0x82, 0x18, 0xfe, 0x11, 0xef, 0xab,
310+
0x88, 0x22, 0x22, 0x2d, 0x34, 0xd4, 0x11,
311+
},
304312
},
305313
},
306314
{

0 commit comments

Comments
 (0)