glcov/prof

Types

pub type Report {
  Report(
    mode: args.ProfileMode,
    total: Int,
    rows: List(Row),
    test_status: Int,
  )
}

Constructors

pub type Row {
  Row(
    source: String,
    line: Int,
    function: String,
    arity: Int,
    calls: Int,
    measurement: Int,
  )
}

Constructors

  • Row(
      source: String,
      line: Int,
      function: String,
      arity: Int,
      calls: Int,
      measurement: Int,
    )

Values

pub fn has_rows(report: Report) -> Bool
pub fn render(report: Report, top: Int) -> String
pub fn render_summary(report: Report, top: Int) -> String
pub fn run(
  modules: List(cover.SelectedModule),
  root: String,
  mode: args.ProfileMode,
  color: Bool,
) -> Result(Report, String)

Profile the project’s test suite with tprof and map the resulting MFA data back to function definition lines in .gleam sources.

pub fn test_status(report: Report) -> Int
✨ Search Document