MCPcopy Create free account
hub / github.com/InferCore/InferCore / TestClassify

Function TestClassify

internal/pipelines/registry_test.go:9–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestClassify(t *testing.T) {
10 if got := Classify(types.RequestTypeRAG, ""); got != KindRAG {
11 t.Fatalf("rag: %s", got)
12 }
13 if got := Classify(types.RequestTypeAgent, ""); got != KindAgent {
14 t.Fatalf("agent: %s", got)
15 }
16 if got := Classify("", "rag/basic:v1"); got != KindRAG {
17 t.Fatalf("ref rag: %s", got)
18 }
19 if got := Classify("", types.DefaultPipelineInference); got != KindInference {
20 t.Fatalf("inference: %s", got)
21 }
22}

Callers

nothing calls this directly

Calls 1

ClassifyFunction · 0.85

Tested by

no test coverage detected