% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate_test_report.R
\name{check_elements_simple}
\alias{check_elements_simple}
\title{Check Which Elements Exist in a List}
\usage{
check_elements_simple(x, elems, nested = FALSE)
}
\arguments{
\item{x}{A list object to check (e.g., `test_results`).}

\item{elems}{A character vector of element names to check.}

\item{nested}{If TRUE and \code{x} has \code{results}, check inside each
framework block. Returns \code{present} (flattened unique) and
\code{by_framework} (named list: framework -> present elements).}
}
\value{
A list with:
\describe{
  \item{present}{Character vector of elements that exist.}
  \item{missing}{Character vector of elements that do not exist (top-level only).}
  \item{by_framework}{Named list (framework -> present elements), when nested.}
}
}
\description{
This internal function checks whether specified elements exist in a given list
and returns two vectors: elements that exist and elements that do not. When
\code{nested = TRUE} and \code{x} has \code{results} (multi-framework), checks
inside each \code{x$results$<framework>}.
}
\keyword{internal}
