% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rule-engine.R
\name{run_single_test}
\alias{run_single_test}
\title{Resolve and run a single named diagnostic test}
\usage{
run_single_test(pedon, test_spec)
}
\arguments{
\item{pedon}{A \code{\link{PedonRecord}}.}

\item{test_spec}{A one-entry named list parsed from YAML, e.g.
\code{list(ferralic = list(min_thickness = 30))}.}
}
\value{
A list with \code{test_name}, \code{passed}, \code{layers},
        \code{missing}, plus optional \code{evidence}, \code{reference},
        \code{notes}.
}
\description{
Looks up \code{names(test_spec)[1]} as a function exported by
soilKey, calls it with the pedon and the parameters listed in
\code{test_spec[[1]]}, and normalises the return value.
}
\keyword{internal}
