This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Commit 3783a2b
committed
filesystem: remove unused mock function
Remove mock of 'UserHomeDir()' for the 'FileSystem' interface leftover from
an earlier iteration of de58f24 (repo: add more GetRepositories() tests, fix
bug, 2023-01-31). The function was removed by the time the commit was
merged, so the mock can safely be deleted.
Add a call to 'mock.AssertExpectationsForObjects()' to ensure all mocked
functions are called. This function should be called in all mocked unit
tests to ensure similar issues do not occur in the future.
Signed-off-by: Victoria Dye <vdye@github.com>1 parent 02b8ade commit 3783a2b
2 files changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 199 | | |
205 | 200 | | |
206 | 201 | | |
| |||
0 commit comments