(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func 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 | |
| 86 | func TestRunTestDataTypes(t *testing.T) { |
| 87 | plans := []testUTPs{ |
nothing calls this directly
no test coverage detected