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.
Trait Implementations§
Source§impl Clone for UntestedFileAction
impl Clone for UntestedFileAction
Source§fn clone(&self) -> UntestedFileAction
fn clone(&self) -> UntestedFileAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UntestedFileAction
impl Debug for UntestedFileAction
Source§impl<'de> Deserialize<'de> for UntestedFileAction
impl<'de> Deserialize<'de> for UntestedFileAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UntestedFileAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UntestedFileAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for UntestedFileAction
impl JsonSchema for UntestedFileAction
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more