diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-13 08:25:56 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-13 08:25:56 -0700 |
commit | f1d7fe5b084c4ee48ba9b6f2591a997594341878 (patch) | |
tree | 01a7363a92c2e52eda168b95fabde7a429e9a027 /os_test.go | |
parent | Mock syscall. (diff) | |
download | dedo-f1d7fe5b084c4ee48ba9b6f2591a997594341878.tar.gz dedo-f1d7fe5b084c4ee48ba9b6f2591a997594341878.tar.xz |
Finish open coverage.
Diffstat (limited to 'os_test.go')
-rw-r--r-- | os_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,9 +10,9 @@ type mockos struct { mock.Mock } -func (m *mockos) OpenFile(name string, flag int, perm os.FileMode) (file *os.File, err error) { +func (m *mockos) OpenFile(name string, flag int, perm os.FileMode) (file file, err error) { args := m.Called(name, flag, perm) - return args.Get(0).(*os.File), args.Error(1) + return args.Get(0).(*mockfile), args.Error(1) } func (m *mockos) Stat(name string) (fi os.FileInfo, err error) { |