mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
16 lines
253 B
Go
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)
|
|
}
|