diff options
author | Jakob Unterwurzacher | 2015-10-04 14:36:20 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-10-04 14:49:47 +0200 |
commit | 89fef80d32708874c95742db0a7b593bcfd3b31d (patch) | |
tree | adffeac51b1e945e32583b07ab0328a3c2539aad /cryptfs/content_test.go | |
parent | 5bd08abf4095fb553355c9b007c8ae4a4314b970 (diff) |
Run go fmt
Diffstat (limited to 'cryptfs/content_test.go')
-rw-r--r-- | cryptfs/content_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cryptfs/content_test.go b/cryptfs/content_test.go index 8f1d48b..ab48b21 100644 --- a/cryptfs/content_test.go +++ b/cryptfs/content_test.go @@ -1,8 +1,8 @@ package cryptfs import ( - "testing" "fmt" + "testing" ) type testRange struct { @@ -22,9 +22,9 @@ func TestSplitRange(t *testing.T) { key := make([]byte, 16) f := NewCryptFS(key, true) - for _, r := range(ranges) { + for _, r := range ranges { parts := f.SplitRange(r.offset, r.length) - for _, p := range(parts) { + for _, p := range parts { if p.Length > DEFAULT_PLAINBS || p.Skip >= DEFAULT_PLAINBS { fmt.Printf("Test fail: n=%d, length=%d, offset=%d\n", p.BlockNo, p.Length, p.Skip) t.Fail() @@ -45,15 +45,15 @@ func TestCiphertextRange(t *testing.T) { key := make([]byte, 16) f := NewCryptFS(key, true) - for _, r := range(ranges) { + for _, r := range ranges { alignedOffset, alignedLength, skipBytes := f.CiphertextRange(r.offset, r.length) if alignedLength < r.length { t.Fail() } - if alignedOffset % f.cipherBS != 0 { + if alignedOffset%f.cipherBS != 0 { t.Fail() } - if r.offset % f.plainBS != 0 && skipBytes == 0 { + if r.offset%f.plainBS != 0 && skipBytes == 0 { t.Fail() } } |