blob: bb53e67673a7ab70a696f7bf330c9a42609a89df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
This test exercises basic 'stub methods' functionality.
-- go.mod --
module example.com
go 1.12
-- a/a.go --
package a
type C int
var _ error = C(0) //@suggestedfix(re"C.0.", re"missing method Error", "refactor.rewrite", stub)
-- @stub/a/a.go --
package a
type C int
// Error implements error
func (C) Error() string {
panic("unimplemented")
}
var _ error = C(0) //@suggestedfix(re"C.0.", re"missing method Error", "refactor.rewrite", stub)
|