diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-01 00:32:09 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-01 00:32:09 -0600 |
commit | 6012a4e2184d53a8e2c34f487698f9a821d508c0 (patch) | |
tree | fc47f5a02cf505e7ff43b2d2251c6b2687933fbb /pkg/btrfs/btrfsvol | |
parent | b589943af25661c140bacdc0afc2550e1e2db852 (diff) |
gofmt -s
Diffstat (limited to 'pkg/btrfs/btrfsvol')
-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 |