diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-11 12:16:12 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-12 11:49:57 -0700 |
commit | 7bb878ff695b89b62483dd6155f5815ad0d06258 (patch) | |
tree | 1ec591c5aca7bfc099a98433f6a7b01e28c1d9db /syscall_darwin_test.go | |
parent | Merge branch 'master' of https://github.com/boltdb/bolt (diff) | |
download | dedo-7bb878ff695b89b62483dd6155f5815ad0d06258.tar.gz dedo-7bb878ff695b89b62483dd6155f5815ad0d06258.tar.xz |
Mmap remap.
Diffstat (limited to 'syscall_darwin_test.go')
-rw-r--r-- | syscall_darwin_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/syscall_darwin_test.go b/syscall_darwin_test.go index 9e64cf7..6b468f6 100644 --- a/syscall_darwin_test.go +++ b/syscall_darwin_test.go @@ -12,3 +12,8 @@ func (m *mocksyscall) Mmap(fd int, offset int64, length int, prot int, flags int args := m.Called(fd, offset, length, prot, flags) return args.Get(0).([]byte), args.Error(1) } + +func (m *mocksyscall) Munmap(b []byte) error { + args := m.Called(b) + return args.Error(0) +} |