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

Function TestGraphHelpers

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

Source from the content-addressed store, hash-verified

61}
62
63func TestGraphHelpers(t *testing.T) {
64 if graphSlug(" Auth Flow ") != "auth flow" {
65 t.Errorf("graphSlug: %q", graphSlug(" Auth Flow "))
66 }
67 if tagID("Go") != "tag:go" {
68 t.Errorf("tagID: %q", tagID("Go"))
69 }
70 if got := graphTitle("first line\nsecond line"); got != "first line" {
71 t.Errorf("graphTitle: %q", got)
72 }
73}

Callers

nothing calls this directly

Calls 4

graphSlugFunction · 0.85
tagIDFunction · 0.85
graphTitleFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected