Commit 80b0306
Replace go-github-mock with stretchr/testify for actions/issues/projects tests (#1737)
* Initial plan
* migrate tests from go-github-mock to internal testify-based mock
Co-authored-by: JoannaaKL <[email protected]>
* address feedback in testmock helper
Co-authored-by: JoannaaKL <[email protected]>
* tweak testmock path matching edge case
Co-authored-by: JoannaaKL <[email protected]>
* refine testmock options and path matching
Co-authored-by: JoannaaKL <[email protected]>
* simplify matchPath and document delete endpoint
Co-authored-by: JoannaaKL <[email protected]>
* Replace go-github-mock usage in tests with shared HTTP mock helper
Co-authored-by: JoannaaKL <[email protected]>
* Replace go-github-mock usage in tests with shared HTTP mock helper
Co-authored-by: JoannaaKL <[email protected]>
* fix tests and lint after mock cleanup
Co-authored-by: JoannaaKL <[email protected]>
* Remove import completely
* Partial removal in repositories_test.go
* Final removal
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JoannaaKL <[email protected]>
Co-authored-by: JoannaaKL <[email protected]>1 parent 7d4a4a6 commit 80b0306
File tree
18 files changed
+1852
-2632
lines changed- docs
- pkg
- github
- raw
- third-party
- github.com
- google/go-github/v71/github
- gorilla/mux
- migueleliasweb/go-github-mock/src/mock
- golang.org/x/time/rate
18 files changed
+1852
-2632
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
| |||
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
56 | | - | |
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
36 | | - | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
| |||
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
58 | | - | |
59 | | - | |
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
| |||
114 | 108 | | |
115 | 109 | | |
116 | 110 | | |
117 | | - | |
118 | | - | |
119 | 111 | | |
120 | 112 | | |
121 | 113 | | |
| |||
0 commit comments