(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestAppendGraphViewRound(t *testing.T) { |
| 55 | hist := []models.Message{{Role: "user", Content: "x"}} |
| 56 | next, followup := appendGraphViewRound(hist, "prompt", `{"source":"json"}`, "ok") |
| 57 | if len(next) != len(hist)+2 { |
| 58 | t.Fatalf("history len = %d", len(next)) |
| 59 | } |
| 60 | if !strings.Contains(followup, "graphview result") { |
| 61 | t.Fatalf("followup = %q", followup) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func TestChatGraphViewXMLInstruction(t *testing.T) { |
| 66 | s := chatGraphViewXMLInstruction() |
nothing calls this directly
no test coverage detected