(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func Test_TestCommand_Dir(t *testing.T) { |
| 85 | out := captureOutput(func() { |
| 86 | TestCommand("testdata/", TestCommandContext{Dir: true}) |
| 87 | }) |
| 88 | assert.Contains(t, out, "✓ [test.yaml] [local] it should print hello world") |
| 89 | } |
| 90 | |
| 91 | func Test_TestCommand_Dir_Err(t *testing.T) { |
| 92 | err := TestCommand("http://foo.com/bar", TestCommandContext{Dir: true}) |
nothing calls this directly
no test coverage detected