pub fn build_test_program_with(
program: Program,
sources: &dyn Sources,
map: Option<&MapDiagnostic<'_>>,
) -> Result<(PathBuf, Vec<TestFn>)>Expand description
build_test_program, reading every module through sources, and
passing each diagnostic through map before it is counted and rendered
(spec 3.5b §7, §11.2). Doc tests are modules no file holds.