(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func Test_TestCommand_Dir_Err(t *testing.T) { |
| 92 | err := TestCommand("http://foo.com/bar", TestCommandContext{Dir: true}) |
| 93 | |
| 94 | if runtime.GOOS == "windows" { |
| 95 | assert.Contains(t, err.Error(), "Error: Input is not a directory") |
| 96 | } else { |
| 97 | assert.Equal(t, "Error: Input is not a directory", err.Error()) |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | func Test_TestCommand_Http(t *testing.T) { |
| 102 | defer gock.Off() |
nothing calls this directly
no test coverage detected