shouldWarnSparseInteractionCells reports whether the compiler should emit a sparse-cell interaction warning.
(workflowData *WorkflowData)
| 386 | // shouldWarnSparseInteractionCells reports whether the compiler should emit a |
| 387 | // sparse-cell interaction warning. |
| 388 | func shouldWarnSparseInteractionCells(workflowData *WorkflowData) bool { |
| 389 | if workflowData == nil || len(workflowData.Experiments) <= 1 { |
| 390 | return false |
| 391 | } |
| 392 | return hasWeightedTrafficExperiment(workflowData.ExperimentConfigs) |
| 393 | } |
| 394 | |
| 395 | // hasWeightedTrafficExperiment returns true when any declared experiment config |
| 396 | // includes a well-formed weight vector (same length as variants, at least one value). |
no test coverage detected