MCPcopy Create free account
hub / github.com/astercloud/aster / TestRunBatch_EmptyScorers

Function TestRunBatch_EmptyScorers

pkg/evals/batch_test.go:223–238  ·  view source on GitHub ↗

TestRunBatch_EmptyScorers 测试空评分器

(t *testing.T)

Source from the content-addressed store, hash-verified

221
222// TestRunBatch_EmptyScorers 测试空评分器
223func TestRunBatch_EmptyScorers(t *testing.T) {
224 testCases := []*BatchTestCase{
225 {ID: "case1", Input: &TextEvalInput{Answer: "测试"}},
226 }
227
228 cfg := &BatchConfig{
229 TestCases: testCases,
230 Scorers: []Scorer{},
231 Concurrency: 1,
232 }
233
234 _, err := RunBatch(context.Background(), cfg)
235 if err == nil {
236 t.Error("RunBatch() should return error for empty scorers")
237 }
238}
239
240// TestRunBatch_WithMetadata 测试带元数据的批量评估
241func TestRunBatch_WithMetadata(t *testing.T) {

Callers

nothing calls this directly

Calls 2

RunBatchFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected