diff options
author | Jakob Unterwurzacher | 2015-10-04 14:24:43 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-10-04 14:24:43 +0200 |
commit | c859f0b2dc8825763c3b63163a014435a8cdb3cf (patch) | |
tree | 3dc6f686e00322bfca25a70cb256524d27df81f4 /cryptfs/content_test.go | |
parent | 775676ecb82f415874f3c6b83da1436b629166f4 (diff) |
intraBlock: Rename Offset to Skip
"Offset" is unclear whether it is an offset from the start of file
or start of block. "Skip" seems much better.
Diffstat (limited to 'cryptfs/content_test.go')
-rw-r--r-- | cryptfs/content_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptfs/content_test.go b/cryptfs/content_test.go index 8fd33c6..8f1d48b 100644 --- a/cryptfs/content_test.go +++ b/cryptfs/content_test.go @@ -25,8 +25,8 @@ func TestSplitRange(t *testing.T) { for _, r := range(ranges) { parts := f.SplitRange(r.offset, r.length) for _, p := range(parts) { - if p.Length > DEFAULT_PLAINBS || p.Offset >= DEFAULT_PLAINBS { - fmt.Printf("Test fail: n=%d, length=%d, offset=%d\n", p.BlockNo, p.Length, p.Offset) + 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() } } |