generateDummyPluginComponent returns a dummy Plugin component for testing
(name, url string, compAttribute attributes.Attributes)
| 142 | |
| 143 | // generateDummyPluginComponent returns a dummy Plugin component for testing |
| 144 | func generateDummyPluginComponent(name, url string, compAttribute attributes.Attributes) v1alpha2.Component { |
| 145 | |
| 146 | return v1alpha2.Component{ |
| 147 | Attributes: compAttribute, |
| 148 | Name: name, |
| 149 | ComponentUnion: v1alpha2.ComponentUnion{ |
| 150 | Plugin: &v1alpha2.PluginComponent{ |
| 151 | ImportReference: v1alpha2.ImportReference{ |
| 152 | RegistryUrl: url, |
| 153 | }, |
| 154 | }, |
| 155 | }, |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | func TestValidateComponents(t *testing.T) { |
| 160 |
no outgoing calls
no test coverage detected