MCPcopy Create free account
hub / github.com/commander-cli/commander / Test_FindMultipleTests

Function Test_FindMultipleTests

pkg/suite/suite_test.go:62–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func Test_FindMultipleTests(t *testing.T) {
63 s := Suite{TestCases: []runtime.TestCase{
64 {Title: "exists"},
65 {Title: "another"},
66 {Title: "another one"},
67 }}
68
69 test, _ := s.FindTests("another")
70 assert.Len(t, test, 2)
71
72 test, _ = s.FindTests("another$")
73 assert.Len(t, test, 1)
74}

Callers

nothing calls this directly

Calls 1

FindTestsMethod · 0.95

Tested by

no test coverage detected