Struct coveralls_api::Source
[−]
[src]
pub struct Source { /* fields omitted */ }
Struct representing source files and the coverage for coveralls
Methods
impl Source
[src]
fn new(
repo_path: &Path,
path: &Path,
lines: &HashMap<usize, usize>,
branches: &Option<Vec<BranchData>>,
include_source: bool
) -> Result<Source, Error>
repo_path: &Path,
path: &Path,
lines: &HashMap<usize, usize>,
branches: &Option<Vec<BranchData>>,
include_source: bool
) -> Result<Source, Error>
Creates a source description for a given file. display_name: Name given to the source file repo_path - Path to file relative to repository root path - absolute path on file system lines - map of line numbers to hits branches - optional, vector of branches in code