File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 14
14
pointer : false
15
15
expect :
16
16
method : .Err
17
- resultIndex : 0
17
+ result-index : 0
18
18
args : []
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ type Rule struct {
32
32
types map [string ]struct {}
33
33
}
34
34
35
+ // expects returns the expected string based on ident.
35
36
func (r Rule ) expects (ident string ) string {
36
37
if ident == "" {
37
38
ident = strings .TrimLeft (r .Call .Results [r .Expect .ResultIndex ].Type , "." )
@@ -158,7 +159,7 @@ func (r Result) name(pkg string) string {
158
159
// Expect is the expected call for a Rule.
159
160
type Expect struct {
160
161
Method string
161
- ResultIndex int `yaml:"resultIndex " mapstructure:"resultIndex "`
162
+ ResultIndex int `yaml:"result-index " mapstructure:"result-index "`
162
163
Args []string
163
164
}
164
165
You can’t perform that action at this time.
0 commit comments