aboutsummaryrefslogtreecommitdiff
path: root/syscall_linux_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-30 16:56:34 -0500
committerBen Johnson <benbjohnson@yahoo.com>2014-01-30 16:56:34 -0500
commit7c2ec1a575d4273082974d2946ebdf41dde917b6 (patch)
tree745670dcb19f08dd87bb209593052468ea5464f9 /syscall_linux_test.go
parentREADME (diff)
downloaddedo-7c2ec1a575d4273082974d2946ebdf41dde917b6.tar.gz
dedo-7c2ec1a575d4273082974d2946ebdf41dde917b6.tar.xz
Fix Linux build.
Diffstat (limited to 'syscall_linux_test.go')
-rw-r--r--syscall_linux_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/syscall_linux_test.go b/syscall_linux_test.go
new file mode 100644
index 0000000..9e64cf7
--- /dev/null
+++ b/syscall_linux_test.go
@@ -0,0 +1,14 @@
+package bolt
+
+import (
+ "github.com/stretchr/testify/mock"
+)
+
+type mocksyscall struct {
+ mock.Mock
+}
+
+func (m *mocksyscall) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
+ args := m.Called(fd, offset, length, prot, flags)
+ return args.Get(0).([]byte), args.Error(1)
+}