MCPcopy
hub / github.com/lmorg/murex / TestRunTestParameters

Function TestRunTestParameters

lang/test_units_func_test.go:52–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50}
51
52func TestRunTestParameters(t *testing.T) {
53 plans := []testUTPs{
54 {
55 Function: "foobar",
56 TestBlock: "out $ARGS",
57 Passed: true,
58 UTP: lang.UnitTestPlan{
59 Parameters: []string{"a", "b", "c"},
60 StdoutMatch: `["foobar","a","b","c"]` + utils.NewLineString,
61 },
62 },
63 {
64 Function: "foobar",
65 TestBlock: "out $ARGS",
66 Passed: true,
67 UTP: lang.UnitTestPlan{
68 Parameters: []string{"1", "2", "3"},
69 StdoutMatch: `["foobar","1","2","3"]` + utils.NewLineString,
70 },
71 },
72 {
73 Function: "foobar",
74 TestBlock: "out $ARGS",
75 Passed: true,
76 UTP: lang.UnitTestPlan{
77 Parameters: []string{"foo bar"},
78 StdoutMatch: `["foobar","foo bar"]` + utils.NewLineString,
79 },
80 },
81 }
82
83 testRunTest(t, plans)
84}
85
86func TestRunTestDataTypes(t *testing.T) {
87 plans := []testUTPs{

Callers

nothing calls this directly

Calls 1

testRunTestFunction · 0.85

Tested by

no test coverage detected