aboutsummaryrefslogtreecommitdiff
path: root/file_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'file_test.go')
-rw-r--r--file_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/file_test.go b/file_test.go
index 3f33d14..7f35c22 100644
--- a/file_test.go
+++ b/file_test.go
@@ -6,18 +6,13 @@ import (
type mockfile struct {
mock.Mock
- fd uintptr
- name string
+ fd uintptr
}
func (m *mockfile) Fd() uintptr {
return m.fd
}
-func (m *mockfile) Name() string {
- return m.name
-}
-
func (m *mockfile) ReadAt(b []byte, off int64) (n int, err error) {
args := m.Called(b, off)
return args.Int(0), args.Error(1)