Skip to content

Commit d7bbe5c

Browse files
committed
Apply gofmt
Fix test cases indentation. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent f815803 commit d7bbe5c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

cobs_test.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,53 @@ import (
77
)
88

99
var testCases = []struct {
10-
name string
10+
name string
1111
dec, enc []byte
1212
}{
1313
{
1414
name: "Empty",
15-
dec: []byte{},
16-
enc: []byte{0x01},
15+
dec: []byte{},
16+
enc: []byte{0x01},
1717
},
1818
{
1919
name: "1 character",
20-
dec: []byte{'1'},
21-
enc: []byte{0x02, '1'},
20+
dec: []byte{'1'},
21+
enc: []byte{0x02, '1'},
2222
},
2323
{
2424
name: "1 zero",
25-
dec: []byte{0x00},
26-
enc: []byte{0x01, 0x01},
25+
dec: []byte{0x00},
26+
enc: []byte{0x01, 0x01},
2727
},
2828
{
2929
name: "2 zeroes",
30-
dec: []byte{0x00, 0x00},
31-
enc: []byte{0x01, 0x01, 0x01},
30+
dec: []byte{0x00, 0x00},
31+
enc: []byte{0x01, 0x01, 0x01},
3232
},
3333
{
3434
name: "3 zeroes",
35-
dec: []byte{0x00, 0x00, 0x00},
36-
enc: []byte{0x01, 0x01, 0x01, 0x01},
35+
dec: []byte{0x00, 0x00, 0x00},
36+
enc: []byte{0x01, 0x01, 0x01, 0x01},
3737
},
3838
{
3939
name: "5 characters",
40-
dec: []byte("12345"),
41-
enc: []byte("\x0612345"),
40+
dec: []byte("12345"),
41+
enc: []byte("\x0612345"),
4242
},
4343
{
4444
name: "Embedded zero",
45-
dec: []byte("12345\x006789"),
46-
enc: []byte("\x0612345\x056789"),
45+
dec: []byte("12345\x006789"),
46+
enc: []byte("\x0612345\x056789"),
4747
},
4848
{
4949
name: "Starting and embedded zero",
50-
dec: []byte("\x0012345\x006789"),
51-
enc: []byte("\x01\x0612345\x056789"),
50+
dec: []byte("\x0012345\x006789"),
51+
enc: []byte("\x01\x0612345\x056789"),
5252
},
5353
{
5454
name: "Embedded and trailing zero",
55-
dec: []byte("12345\x006789\x00"),
56-
enc: []byte("\x0612345\x056789\x01"),
55+
dec: []byte("12345\x006789\x00"),
56+
enc: []byte("\x0612345\x056789\x01"),
5757
},
5858
{
5959
name: "253 non-zero bytes",

0 commit comments

Comments
 (0)