(t *testing.T)
| 148 | } |
| 149 | |
| 150 | func TestMainParsesBuiltInDefinitions(t *testing.T) { |
| 151 | t.Run("du-framework", func(t *testing.T) { MainParsesBuiltInDefinitions(t, "du discovery", "projects") }) |
| 152 | t.Run("orchestrator", func(t *testing.T) { MainParsesBuiltInDefinitions(t, "orchestrator users", "get-by-id") }) |
| 153 | t.Run("orchestrator", func(t *testing.T) { MainParsesBuiltInDefinitions(t, "orchestrator", "assets") }) |
| 154 | } |
| 155 | |
| 156 | func MainParsesBuiltInDefinitions(t *testing.T, command string, expected string) { |
| 157 | definitionDir, _ := os.Getwd() |
nothing calls this directly
no test coverage detected