ct_cover(3erl)
π ct_cover β Common Testβs code coverage bestie π
Okay so this is ct_cover from the Erlang Module Definition manual. She is the Common Test framework code coverage support module, and she is literally here to help you do coverage analysis. No cap. β¨
πΈ NAME πΈ
ct_cover β Common Test framework code coverage support module. Periodt.
π¦ DESCRIPTION π¦
Okay so ct_cover is the Common Test framework code coverage support module. Yes, same energy as NAME, because that is the whole vibe.
This module exports help functions for performing code coverage analysis. Obsessed. π
π₯ EXPORTS π₯
Here are the exports, bestie β every one, no skipping. π«Ά
β add_nodes(Nodes) -> {ok, StartedNodes} | {error, Reason} β
Types:
Nodes = [atom()]StartedNodes = [atom()]Reason = cover_not_running | not_main_node
Adds nodes to current cover test. Notice that this only works if cover support is active. So highkey check that vibe first. π
To have effect, this function is to be called from init_per_suite/1 (see common_test) before any tests are performed. iykyk β timing matters. π
π cross_cover_analyse(Level, Tests) -> ok π
Types:
Level = overview | detailsTests = [{Tag, Dir}]Tag = atom()Dir = string()
Accumulates cover results over multiple tests. See section Cross Cover Analysis in the Users's Guide. Slay. π
π remove_nodes(Nodes) -> ok | {error, Reason} π
Types:
Nodes = [atom()]Reason = cover_not_running | not_main_node
Removes nodes from the current cover test.
Call this function to stop cover test on nodes previously added with ct_cover:add_nodes/1. Results on the remote node are transferred to the Common Test node. That is the cleanup era, bestie. π§Ήβ¨
Footer vibes: Ericsson AB, common_test 1.24.0.1, and the page tag ct_cover(3erl) β no separate date shown on this footer, bestie. Bye bestie, go get that coverage! π π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms