Struct rustdoc::test::Collector [−][src]
pub struct Collector { pub tests: Vec<TestDescAndFn>, names: Vec<String>, cfgs: Vec<String>, libs: SearchPaths, cg: CodegenOptions, externs: Externs, use_headers: bool, cratename: String, opts: TestOptions, maybe_sysroot: Option<PathBuf>, position: Span, codemap: Option<Lrc<CodeMap>>, filename: Option<PathBuf>, linker: Option<PathBuf>, edition: Edition, }
Fields
tests: Vec<TestDescAndFn>
names: Vec<String>
cfgs: Vec<String>
libs: SearchPaths
cg: CodegenOptions
externs: Externs
use_headers: bool
cratename: String
opts: TestOptions
maybe_sysroot: Option<PathBuf>
position: Span
codemap: Option<Lrc<CodeMap>>
filename: Option<PathBuf>
linker: Option<PathBuf>
edition: Edition
Methods
impl Collector
[src]
impl Collector
pub fn new(
cratename: String,
cfgs: Vec<String>,
libs: SearchPaths,
cg: CodegenOptions,
externs: Externs,
use_headers: bool,
opts: TestOptions,
maybe_sysroot: Option<PathBuf>,
codemap: Option<Lrc<CodeMap>>,
filename: Option<PathBuf>,
linker: Option<PathBuf>,
edition: Edition
) -> Collector
[src]
pub fn new(
cratename: String,
cfgs: Vec<String>,
libs: SearchPaths,
cg: CodegenOptions,
externs: Externs,
use_headers: bool,
opts: TestOptions,
maybe_sysroot: Option<PathBuf>,
codemap: Option<Lrc<CodeMap>>,
filename: Option<PathBuf>,
linker: Option<PathBuf>,
edition: Edition
) -> Collector
fn generate_name(&self, line: usize, filename: &FileName) -> String
[src]
fn generate_name(&self, line: usize, filename: &FileName) -> String
pub fn add_test(
&mut self,
test: String,
should_panic: bool,
no_run: bool,
should_ignore: bool,
as_test_harness: bool,
compile_fail: bool,
error_codes: Vec<String>,
line: usize,
filename: FileName,
allow_fail: bool
)
[src]
pub fn add_test(
&mut self,
test: String,
should_panic: bool,
no_run: bool,
should_ignore: bool,
as_test_harness: bool,
compile_fail: bool,
error_codes: Vec<String>,
line: usize,
filename: FileName,
allow_fail: bool
)
pub fn get_line(&self) -> usize
[src]
pub fn get_line(&self) -> usize
pub fn set_position(&mut self, position: Span)
[src]
pub fn set_position(&mut self, position: Span)
pub fn get_filename(&self) -> FileName
[src]
pub fn get_filename(&self) -> FileName
pub fn register_header(&mut self, name: &str, level: u32)
[src]
pub fn register_header(&mut self, name: &str, level: u32)