func (p *TestEventProcessor) GetEvents() []event.UserEvent {
	c := make([]event.UserEvent, len(p.events))
	copy(c, p.events)
	return c
}
GetEvents returns a copy of the events received by the TestEventProcessor
package optimizelytest
import (
	"errors"
	"github.com/optimizely/go-sdk/pkg/event"
)
var ErrNotImplemented = errors.New("not implemented")
type TestEventProcessor struct {
	events []event.UserEvent
}
func (p *TestEventProcessor) ProcessEvent(e event.UserEvent) bool {
	p.events = append(p.events, e)
	return true
}