% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-diagnostic-tests-v04.R
\name{aggregate_alternatives}
\alias{aggregate_alternatives}
\title{Aggregate alternative-path subtests with OR semantics}
\usage{
aggregate_alternatives(paths)
}
\arguments{
\item{paths}{Named list of named subtest lists. Each inner list is
a set of subtests that combine with AND.}
}
\value{
A list with elements \code{passed}, \code{layers},
        \code{missing}, and \code{passing_path} (the name of the
        first path that passed, or \code{NA_character_}).
}
\description{
Each "path" is a named list of subtests that combine with AND
(intersect their layers). Paths combine with OR: the diagnostic
passes if any path passes; passing layers are the union across
passing paths; missing attributes are unioned across all paths
that did not pass and reported NA. Used by diagnostics where WRB
specifies several alternative qualifying conditions.
}
\keyword{internal}
