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

Function Test_RuntimeStart

pkg/runtime/runtime_test.go:16–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14}
15
16func Test_RuntimeStart(t *testing.T) {
17 s := getExampleTestCases()
18 r := getRuntime()
19 got := r.Start(s)
20
21 assert.IsType(t, Result{}, got)
22
23 count := 0
24 for _, r := range got.TestResults {
25 assert.Equal(t, "Output hello", r.TestCase.Title)
26 assert.True(t, r.ValidationResult.Success)
27 count++
28 }
29 assert.Equal(t, 1, count)
30}
31
32func TestRuntime_WithRetries(t *testing.T) {
33 s := getExampleTestCases()

Callers

nothing calls this directly

Calls 3

getExampleTestCasesFunction · 0.85
getRuntimeFunction · 0.85
StartMethod · 0.80

Tested by

no test coverage detected