()
| 243 | } |
| 244 | |
| 245 | func getExampleTest() TestCase { |
| 246 | test := TestCase{ |
| 247 | Expected: Expected{ |
| 248 | Stdout: ExpectedOut{ |
| 249 | Lines: map[int]string{1: "hello"}, |
| 250 | LineCount: 1, |
| 251 | Exactly: "hello", |
| 252 | Contains: []string{"hello"}, |
| 253 | NotContains: []string{"not-exist"}, |
| 254 | }, |
| 255 | Stderr: ExpectedOut{ |
| 256 | Lines: map[int]string{1: "error"}, |
| 257 | LineCount: 1, |
| 258 | Exactly: "error", |
| 259 | Contains: []string{"error"}, |
| 260 | NotContains: []string{"not-exist"}, |
| 261 | }, |
| 262 | LineCount: 1, |
| 263 | }, |
| 264 | Result: CommandResult{ |
| 265 | Stdout: "hello", |
| 266 | Stderr: "error", |
| 267 | ExitCode: 0, |
| 268 | }, |
| 269 | } |
| 270 | return test |
| 271 | } |
no outgoing calls
no test coverage detected