This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Commit de58f24
committed
repo: add more GetRepositories() tests, fix bug
Add a few more cases to TestRepos_GetRepositories() including an error
from the filesystem, a single repo case, and multiple repositories.
Be sure to match the expected output of ReadFileLines() which is to trim
the newlines.
In the multiple repositories case, I added an empty line to check the
case of skipping newlines. In an earlier version of this commit, I had
thought there was a bug, but it was due to me including newlines in the
mocked output.
Signed-off-by: Derrick Stolee <[email protected]>1 parent 4ad2a8c commit de58f24
1 file changed
+55
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
29 | 83 | | |
30 | 84 | | |
31 | 85 | | |
| |||
38 | 92 | | |
39 | 93 | | |
40 | 94 | | |
41 | | - | |
| 95 | + | |
42 | 96 | | |
43 | 97 | | |
44 | 98 | | |
| |||
0 commit comments