MCPcopy Create free account
hub / github.com/diillson/chatcli / TestAppendGraphViewRound

Function TestAppendGraphViewRound

cli/chat_graphview_test.go:54–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func 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
65func TestChatGraphViewXMLInstruction(t *testing.T) {
66 s := chatGraphViewXMLInstruction()

Callers

nothing calls this directly

Calls 1

appendGraphViewRoundFunction · 0.85

Tested by

no test coverage detected