MCPcopy Create free account
hub / github.com/cogentcore/core / TestMatchSeedString

Function TestMatchSeedString

parse/complete/complete_test.go:57–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55)
56
57func TestMatchSeedString(t *testing.T) {
58 for seed, want := range seeds {
59 have := MatchSeedString(completions, seed)
60 if !reflect.DeepEqual(have, want) {
61 t.Errorf("expected for %q\n%#v\n\tbut got\n%#v", seed, want, have)
62 }
63 }
64}
65
66func TestMatchSeedCompletion(t *testing.T) {
67 for seed, want := range seeds {

Callers

nothing calls this directly

Calls 2

MatchSeedStringFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected