Files
wehub-resource-sync f36e2104d8
tests / ragflow_tests_infinity (push) Has been cancelled
tests / ragflow_tests_elasticsearch (push) Has been cancelled
sep-tests / ragflow_preflight (push) Has been cancelled
sep-tests / ragflow_tests_infinity (push) Has been cancelled
sep-tests / ragflow_tests_elasticsearch (push) Has been cancelled
tests / ragflow_preflight (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:16:49 +08:00

17 lines
337 B
Go

package models
import (
"strings"
"testing"
)
func requireNoSuchMethod(t *testing.T, name string, err error) {
t.Helper()
if err == nil {
t.Fatalf("%s: expected no such method error, got nil", name)
}
if !strings.Contains(err.Error(), "no such method") {
t.Fatalf("%s: expected no such method error, got %v", name, err)
}
}