testutils

package
v0.0.0-...-33f46c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateComponentDescriptor

func CreateComponentDescriptor(name, version string) *compdesc.ComponentDescriptor

CreateComponentDescriptor creates a new component descriptor for testing purposes. This exists due to the fact that the ocm compdesc package is using init functions in /versions/v2 that need to be called for certain functions of ocm/compdesc to work properly, like Convert(), Validate(), etc. If you got "schema not found" error, saying that v2 is unsupported, use this function to create a component descriptor in tests!

func RandomName

func RandomName(length int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL