aboutsummaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-12 15:30:09 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-01-12 15:30:09 -0700
commit28c1e86a27b2dc3ba59b8c4d69f15a8e54334a89 (patch)
tree0ceb5ed513345f4d52fe419cb635bd6b6aed31de /file.go
parentAdd mock OS. (diff)
downloaddedo-28c1e86a27b2dc3ba59b8c4d69f15a8e54334a89.tar.gz
dedo-28c1e86a27b2dc3ba59b8c4d69f15a8e54334a89.tar.xz
Mock OS and File.
Diffstat (limited to 'file.go')
-rw-r--r--file.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/file.go b/file.go
new file mode 100644
index 0000000..4beb722
--- /dev/null
+++ b/file.go
@@ -0,0 +1,8 @@
+package bolt
+
+type file interface {
+ Fd() uintptr
+ Name() string
+ ReadAt(b []byte, off int64) (n int, err error)
+ WriteAt(b []byte, off int64) (n int, err error)
+}