penlightcompare

src/penlight.gleam

Erlang: 0.0% (0/1) · Node.js: 100.0% (0/0)

OTP and V8 instrument different executable lines. Percentages use each backend’s own denominator. — means not instrumented; 0 means instrumented but not executed. Different counts are not automatically a behavioural difference.

LineOTPNodeGleam source
1——//// Run tests. Illuminate coverage.
2——//// Discover public zero-argument functions ending in `_test` under `test/`.
3——//// Run with `gleam run -m penlight -- --help`.
4——
5——/// Run discovered tests and generate terminal and HTML line coverage.
6——/// Call this from the main function in `test/<package_name>_test.gleam`
7——/// to use Penlight with `gleam test`. Adding the dependency alone does not
8——/// change the test runner. JavaScript consumers must enable source maps.
9——@external(erlang, "penlight_ffi", "main")
10——@external(javascript, "./penlight_node.mjs", "main")
110—pub fn main() -> Nil
12——