Commit 06e0199
authored
Add interface alias support to
* Add interface alias support to `cmg`
- Add support for making mocks for exported aliases that point to
interface types in the `cmg` tool.
* Fix embedding generic interfaces
* Make lint happy
* Use cast with ok instead of type switch when type switch is not really neededcmg (#553)1 parent ce9ba75 commit 06e0199
File tree
14 files changed
+841
-40
lines changed- mock/cmd/cmg/pkg
- generate
- _tests/extensive
- aliased
- mocks
- parse
- _tests/doer
14 files changed
+841
-40
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
65 | 80 | | |
0 commit comments