| 1 |
package bugreport |
| 2 |
|
| 3 |
//go:generate mockgen -destination bugreport_mock.go -package bugreport -source=bugreport.go |
| 4 |
|
| 5 |
type Example interface { |
| 6 |
// _m and _mr were used by the buggy code: the '_' prefix was there hoping |
| 7 |
// that no one will use method argument names starting with '_' reducing |
| 8 |
// the chance of collision with generated identifiers. |
| 9 |
// m and mr are used by the bugfixed new code, the '_' prefix has been |
| 10 |
// removed because the new code generator changes the names of the |
| 11 |
// generated identifiers in case they would collide with identifiers |
| 12 |
// coming from argument names. |
| 13 |
Method(_m, _mr, m, mr int) |
| 14 |
|
| 15 |
VarargMethod(_s, _x, a, ret int, varargs ...int) |
| 16 |
} |