MCPcopy Create free account
hub / github.com/devfile/api / generateDummyPluginComponent

Function generateDummyPluginComponent

pkg/validation/components_test.go:144–157  ·  view source on GitHub ↗

generateDummyPluginComponent returns a dummy Plugin component for testing

(name, url string, compAttribute attributes.Attributes)

Source from the content-addressed store, hash-verified

142
143// generateDummyPluginComponent returns a dummy Plugin component for testing
144func 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
159func TestValidateComponents(t *testing.T) {
160

Callers 1

TestValidateComponentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected