(t *testing.T)
| 76 | } |
| 77 | |
| 78 | func 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 | |
| 91 | func TestSearchTransitiveGroupsQuery_EscapesSingleQuote(t *testing.T) { |
| 92 | got := searchTransitiveGroupsQuery("o'connor@example.com") |
nothing calls this directly
no test coverage detected