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
17 lines
337 B
Go
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)
|
|
}
|
|
}
|