Coverex - Coverage Reports for Elixir v1.4.12 Coverex.Task

Summary

Types

fun_cover :: [{mfa, {integer, integer}}]
mod_cover :: [{String.t, {integer, integer}}]

Functions

cover_class(arg1)
coverage_data(all_modules)

Specs

coverage_data([atom]) :: {mod_cover, fun_cover}

Returns detailed coverage data {mod, mf} for all modules from the :cover application. The special functions __info__ and __struct__ are filtered out of the list of covered functions.

The mod data

The mod data is a list of pairs: {modulename, {no of covered lines, no of uncovered lines}}

The mf data

The mf data is list of pairs: {{m, f, a}, {no of covered lines, no of uncovered lines}}

encode_html(s, acc \\ "")
filter_modules(all_modules, ignore_list)
module_anchor(m)
overview_entry_template(entry, cov, uncov, ratio)
overview_entry_text_template(entry, cov, uncov, ratio)
overview_template(title, entries, total)
overview_text_template(entries, total)
post_coveralls(mods, output, job_id, url \\ "https://coveralls.io/api/v1/jobs")

Specs

post_coveralls([atom], String.t, String.t, String.t) :: :ok
post_to_coveralls?(opts)

is post to coveralls requested?

puts_module_overview(modules_summary, total)
running_travis?(env \\ System.get_env())

Specs

running_travis?(%{optional(String.t) => String.t}) :: String.t
send_http(url, filename, body)
source_line_template(number, count, source, anchor)
source_template(title, lines)
start(compile_path, opts)

Starts the Coverex coverage data generation. An additional option is

log: :error

which sets the log-level of the Elixir Logger application. Default value is :error. For debugging purposes, it can be set to :debug. In this case, the output is quite noisy…

travis_job_id(env \\ System.get_env())

Specs

travis_job_id(%{optional(String.t) => String.t}) :: String.t

gets the travis job id out of the environment

write_function_overview(functions, output)
write_html_file(mod, output)
write_module_overview(modules, total, output)