Learn R Programming

test.assessr (version 1.1.1)

create_empty_covr_list: Create an empty covr list for fallback

Description

This internal utility function returns a default coverage list structure used when test execution or mapping fails. It ensures consistent output format for downstream processing even when no valid test results are available.

Usage

create_empty_covr_list(pkg_name, error_message)

Value

A named list containing default coverage values, the provided error message, and placeholder notes.

Arguments

pkg_name

A character string representing the name of the package.

error_message

A character string describing the reason for the fallback.