(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func 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 | } |
nothing calls this directly
no test coverage detected