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

Method EventsAdded

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

EventsAdded adds event to the test schema and notifies a registered follower

(events *schema.Events)

Source from the content-addressed store, hash-verified

24
25// EventsAdded adds event to the test schema and notifies a registered follower
26func (devfile *TestDevfile) EventsAdded(events *schema.Events) {
27 LogInfoMessage(fmt.Sprintf("events added"))
28 devfile.SchemaDevFile.Events = events
29 if devfile.Follower != nil {
30 devfile.Follower.AddEvent(*events)
31 }
32}
33
34// EventsUpdated notifies a registered follower that the events have been updated
35func (devfile *TestDevfile) EventsUpdated(events *schema.Events) {

Callers 1

AddEventsMethod · 0.95

Calls 2

LogInfoMessageFunction · 0.85
AddEventMethod · 0.80

Tested by

no test coverage detected