kubo/test/cli/testutils/asserts.go
2023-03-20 10:05:03 +01:00

16 lines
253 B
Go

package testutils
import (
"strings"
"testing"
)
func AssertStringContainsOneOf(t *testing.T, str string, ss ...string) {
for _, s := range ss {
if strings.Contains(str, s) {
return
}
}
t.Errorf("%q does not contain one of %v", str, ss)
}