diff options
Diffstat (limited to 'pkg/btrfs/btrfsvol/addr_test.go')
-rw-r--r-- | pkg/btrfs/btrfsvol/addr_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/btrfs/btrfsvol/addr_test.go b/pkg/btrfs/btrfsvol/addr_test.go index 83af1ac..cfc5053 100644 --- a/pkg/btrfs/btrfsvol/addr_test.go +++ b/pkg/btrfs/btrfsvol/addr_test.go @@ -18,12 +18,12 @@ func TestAddrFormat(t *testing.T) { } addr := btrfsvol.LogicalAddr(0x3a41678000) testcases := map[string]TestCase{ - "v": TestCase{InputAddr: addr, InputFmt: "%v", Output: "0x0000003a41678000"}, - "s": TestCase{InputAddr: addr, InputFmt: "%s", Output: "0x0000003a41678000"}, - "q": TestCase{InputAddr: addr, InputFmt: "%q", Output: `"0x0000003a41678000"`}, - "x": TestCase{InputAddr: addr, InputFmt: "%x", Output: "3a41678000"}, - "d": TestCase{InputAddr: addr, InputFmt: "%d", Output: "250205405184"}, - "neg": TestCase{InputAddr: -1, InputFmt: "%v", Output: "-0x000000000000001"}, + "v": {InputAddr: addr, InputFmt: "%v", Output: "0x0000003a41678000"}, + "s": {InputAddr: addr, InputFmt: "%s", Output: "0x0000003a41678000"}, + "q": {InputAddr: addr, InputFmt: "%q", Output: `"0x0000003a41678000"`}, + "x": {InputAddr: addr, InputFmt: "%x", Output: "3a41678000"}, + "d": {InputAddr: addr, InputFmt: "%d", Output: "250205405184"}, + "neg": {InputAddr: -1, InputFmt: "%v", Output: "-0x000000000000001"}, } for tcName, tc := range testcases { tc := tc |