use strings.Contains instead of strings.Index
This commit is contained in:
@@ -37,7 +37,7 @@ func (mw *mockWriter) Reset() {
|
||||
}
|
||||
|
||||
func (mw *mockWriter) Contains(text string) bool {
|
||||
return strings.Index(mw.builder.String(), text) > -1
|
||||
return strings.Contains(mw.builder.String(), text)
|
||||
}
|
||||
|
||||
func TestFileLineFileMode(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user