MCPcopy Create free account
hub / github.com/github/gh-aw / shouldWarnSparseInteractionCells

Function shouldWarnSparseInteractionCells

pkg/workflow/compiler_validators.go:388–393  ·  view source on GitHub ↗

shouldWarnSparseInteractionCells reports whether the compiler should emit a sparse-cell interaction warning.

(workflowData *WorkflowData)

Source from the content-addressed store, hash-verified

386// shouldWarnSparseInteractionCells reports whether the compiler should emit a
387// sparse-cell interaction warning.
388func 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).

Callers 1

Calls 1

Tested by

no test coverage detected