MCPcopy Create free account
hub / github.com/larksuite/cli / TestCmdExampleCheckSuggestsNearest

Function TestCmdExampleCheckSuggestsNearest

cmd/cmdexample_units_test.go:181–187  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

179}
180
181func 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

Callers

nothing calls this directly

Calls 2

checkRefsFunction · 0.85
testCatalogFunction · 0.70

Tested by

no test coverage detected