excoveralls v0.6.1 ExCoveralls.Stats

Provide calculation logics of coverage stats.

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 he specified module

Summarizes source coverage details

Functions

append_sub_app_name(stats, sub_app_name, apps_path)

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

calculate_stats(modules)

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

ensure_minimum_coverage(stats)

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

generate_coverage(hash)

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

generate_source_info(coverage)

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

get_source_line_count(file_path)

Returns total line counts of the specified source file.

read_module_source(module)

Returns the source file of the specified module.

read_source(file_path)

Wrapper for reading the specified file.

report(modules)

Report the statistical information for he specified module.

skip_files(converage)
source(stats)
source(stats, patterns)

Summarizes source coverage details.

trim_empty_prefix_and_suffix(string)