ExCoveralls.Stats (excoveralls v0.18.0) View Source

Provide calculation logics of coverage stats.

Link to this section Summary

Functions

Append the name of the sub app to the source info stats.

Calculate the statistical information for the specified list of modules. It uses :cover.analyse for getting the information.

Exit the process with a status of 1 if coverage is below the minimum.

Generate coverage, based on the pre-calculated statistic information.

Generate objects which stores source-file and coverage stats information.

Returns total line counts of the specified source file.

Returns the source file of the specified module.

Wrapper for reading the specified file.

Report the statistical information for the specified module.

Summarizes source coverage details.

Updates the paths to take into account the subdir and rootdir options

Link to this section Functions

Link to this function

append_sub_app_name(stats, sub_app_name, apps_path)

View Source

Append the name of the sub app to the source info stats.

Link to this function

calculate_stats(modules)

View Source

Calculate the statistical information for the specified list of modules. It uses :cover.analyse for getting the information.

Link to this function

ensure_minimum_coverage(stats)

View Source

Exit the process with a status of 1 if coverage is below the minimum.

Generate coverage, based on the pre-calculated statistic information.

Link to this function

generate_source_info(coverage)

View Source

Generate objects which stores source-file and coverage stats information.

Link to this function

get_coverage(relevant, covered)

View Source
Link to this function

get_source_line_count(file_path)

View Source

Returns total line counts of the specified source file.

Link to this function

read_module_source(module)

View Source

Returns the source file of the specified module.

Wrapper for reading the specified file.

Report the statistical information for the specified module.

Summarizes source coverage details.

Link to this function

trim_empty_prefix_and_suffix(string)

View Source
Link to this function

update_paths(stats, options)

View Source

Updates the paths to take into account the subdir and rootdir options