pub struct UntestedFileAction {
pub kind: UntestedFileActionType,
pub auto_fixable: bool,
pub description: String,
pub note: Option<String>,
pub comment: Option<String>,
}Expand description
Suggested action attached to an UntestedFile coverage-gap finding.
build_untested_file_actions emits a two-entry array on every
untested-file item: an add-tests primary action (scaffold tests for
the runtime file) and a suppress-file action
(// fallow-ignore-file coverage-gaps). Both variants share the same
struct shape; the field that is populated (note for add-tests,
comment for suppress-file) depends on the kind.
Fields§
§kind: UntestedFileActionTypeAction type identifier.
auto_fixable: boolWhether fallow fix can auto-apply this action. Today both
variants are manual.
description: StringHuman-readable description of the action.
note: Option<String>Additional context for the add-tests variant (explains why no
test path reaches this file). Absent on suppress-file.
comment: Option<String>The file-level comment to insert. Present on suppress-file
(// fallow-ignore-file coverage-gaps). Absent on add-tests.