(t *testing.T)
| 179 | } |
| 180 | |
| 181 | func TestCmdExampleCheckSuggestsNearest(t *testing.T) { |
| 182 | c := testCatalog() |
| 183 | fs := checkRefs(c, []ref{{words: []string{"mail", "user_mailbox.messages", "batch_modify_message"}}}) |
| 184 | if len(fs) != 1 || fs[0].suggest != "mail user_mailbox.messages batch_modify" { |
| 185 | t.Fatalf("expected suggestion 'mail user_mailbox.messages batch_modify', got %+v", fs) |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | // TestCmdExampleParseRefsRobustness covers the parser edge cases hardened after |
| 190 | // review: backslash continuation, underscore flags, $(...) substitution, glued |
nothing calls this directly
no test coverage detected