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

Function Test_FindTests

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

Source from the content-addressed store, hash-verified

49}
50
51func Test_FindTests(t *testing.T) {
52 s := Suite{TestCases: []runtime.TestCase{
53 {Title: "exists"},
54 {Title: "another"},
55 {Title: "another one"},
56 }}
57
58 test, _ := s.FindTests("exists")
59 assert.Len(t, test, 1)
60}
61
62func Test_FindMultipleTests(t *testing.T) {
63 s := Suite{TestCases: []runtime.TestCase{

Callers

nothing calls this directly

Calls 1

FindTestsMethod · 0.95

Tested by

no test coverage detected