in model/model_experiment.go [60:78]
func (e *Experiment) Match(experimentContext *ExperimentContext) bool {
if e.ExperimentFlow == 0 {
return false
}
if e.ExperimentFlow == 100 {
return true
}
if _, found := e.debugUserMap[experimentContext.Uid]; found {
return true
}
if e.diversionBucket != nil {
return e.diversionBucket.Match(&ExperimentContext{Uid: experimentContext.ExperimentHashString()})
}
return false
}