MCPcopy Create free account
hub / github.com/openclaw/gogcli / TestSearchTransitiveGroupsQuery

Function TestSearchTransitiveGroupsQuery

internal/cmd/groups_test.go:78–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestSearchTransitiveGroupsQuery(t *testing.T) {
79 got := searchTransitiveGroupsQuery("person@example.com")
80 if !strings.Contains(got, "member_key_id == 'person@example.com'") {
81 t.Fatalf("missing member_key_id clause: %q", got)
82 }
83 if !strings.Contains(got, "'"+groupLabelDiscussionForum+"' in labels") {
84 t.Fatalf("missing discussion label clause: %q", got)
85 }
86 if !strings.Contains(got, "'"+groupLabelDynamic+"' in labels") {
87 t.Fatalf("missing dynamic label clause: %q", got)
88 }
89}
90
91func TestSearchTransitiveGroupsQuery_EscapesSingleQuote(t *testing.T) {
92 got := searchTransitiveGroupsQuery("o'connor@example.com")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected