(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func TestWindowsCommands(t *testing.T) { |
| 24 | testConfig, ok := TestConfigurations["cobol"] |
| 25 | assert.True(t, ok, "unexpectedly unable to find cobol test config") |
| 26 | |
| 27 | cmd, err := testConfig.GetTestCommand() |
| 28 | assert.NoError(t, err) |
| 29 | |
| 30 | if runtime.GOOS == "windows" { |
| 31 | assert.Contains(t, cmd, ".ps1") |
| 32 | assert.NotContains(t, cmd, ".sh") |
| 33 | } else { |
| 34 | assert.Contains(t, cmd, ".sh") |
| 35 | assert.NotContains(t, cmd, ".ps1") |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func TestGetCommandMissingConfig(t *testing.T) { |
| 40 | testConfig, ok := TestConfigurations["ruby"] |
nothing calls this directly
no test coverage detected