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

Method AddParent

test/v200/utils/common/parent_test_utils.go:26–31  ·  view source on GitHub ↗

AddParent adds properties in the test schema structure and populates it with random attributes

()

Source from the content-addressed store, hash-verified

24
25// AddParent adds properties in the test schema structure and populates it with random attributes
26func (devfile *TestDevfile) AddParent() schema.Parent {
27 parent := schema.Parent{}
28 devfile.ParentAdded(&parent)
29 devfile.setParentValues(&parent)
30 return parent
31}
32
33// ParentAdded adds the parent obj to the test schema
34func (devfile *TestDevfile) ParentAdded(parent *schema.Parent) {

Callers 1

RunTestMethod · 0.95

Calls 2

ParentAddedMethod · 0.95
setParentValuesMethod · 0.95

Tested by

no test coverage detected