@@ -153,13 +153,13 @@ func (e *outExpecter) ExpectRegexMatch(str string) string {
153
153
return e .expectMatchContextFunc (str , e .ExpectRegexMatchContext )
154
154
}
155
155
156
- func (e * outExpecter ) expectMatchContextFunc (str string , impl func (ctx context.Context , str string ) string ) string {
156
+ func (e * outExpecter ) expectMatchContextFunc (str string , fn func (ctx context.Context , str string ) string ) string {
157
157
e .t .Helper ()
158
158
159
159
timeout , cancel := context .WithTimeout (context .Background (), testutil .WaitMedium )
160
160
defer cancel ()
161
161
162
- return impl (timeout , str )
162
+ return fn (timeout , str )
163
163
}
164
164
165
165
// TODO(mafredri): Rename this to ExpectMatch when refactoring.
@@ -175,7 +175,7 @@ func (e *outExpecter) ExpectRegexMatchContext(ctx context.Context, str string) s
175
175
})
176
176
}
177
177
178
- func (e * outExpecter ) expectMatcherFunc (ctx context.Context , str string , matchFn func (src , pattern string ) bool ) string {
178
+ func (e * outExpecter ) expectMatcherFunc (ctx context.Context , str string , fn func (src , pattern string ) bool ) string {
179
179
e .t .Helper ()
180
180
181
181
var buffer bytes.Buffer
@@ -189,7 +189,7 @@ func (e *outExpecter) expectMatcherFunc(ctx context.Context, str string, matchFn
189
189
if err != nil {
190
190
return err
191
191
}
192
- if matchFn (buffer .String (), str ) {
192
+ if fn (buffer .String (), str ) {
193
193
return nil
194
194
}
195
195
}
0 commit comments