diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-12 15:50:35 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-12 15:50:35 -0700 |
commit | 47224c438732d021e5aef74af30c7fd5801621d2 (patch) | |
tree | 86c3ed57636dc0794b61e6764c08ea5777bef072 /file_test.go | |
parent | Mock OS and File. (diff) | |
download | dedo-47224c438732d021e5aef74af30c7fd5801621d2.tar.gz dedo-47224c438732d021e5aef74af30c7fd5801621d2.tar.xz |
Mock syscall.
Diffstat (limited to 'file_test.go')
-rw-r--r-- | file_test.go | 7 |
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) |