Skip to main content

fixture_str

Function fixture_str 

Source
pub fn fixture_str(path: &str) -> Option<&'static str>
Expand description

Return an embedded fixture’s UTF-8 contents by relative path, e.g. fixture_str("crossref/journal_article.json"). Returns None if the file is absent or not valid UTF-8.