AddEvents adds events in the test schema structure and populates it with random attributes
()
| 41 | |
| 42 | // AddEvents adds events in the test schema structure and populates it with random attributes |
| 43 | func (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 |
| 51 | func (devfile *TestDevfile) SetEventsValues(events *schema.Events) { |
no test coverage detected