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

Method AddEvents

test/v200/utils/common/events-utils.go:43–48  ·  view source on GitHub ↗

AddEvents adds events in the test schema structure and populates it with random attributes

()

Source from the content-addressed store, hash-verified

41
42// AddEvents adds events in the test schema structure and populates it with random attributes
43func (devfile *TestDevfile) AddEvents() schema.Events {
44 events := schema.Events{}
45 devfile.EventsAdded(&events)
46 devfile.SetEventsValues(&events)
47 return events
48}
49
50// SetEventsValues randomly adds/modifies attributes of the supplied events
51func (devfile *TestDevfile) SetEventsValues(events *schema.Events) {

Callers 1

RunTestMethod · 0.95

Calls 2

EventsAddedMethod · 0.95
SetEventsValuesMethod · 0.95

Tested by

no test coverage detected