object
fail_insertion(Entity,Predicate,ClauseIndex,Occurrence,PrintMutation)
Entity- Identifier of the entity being mutated.Predicate- Predicate or non-terminal indicator selecting clauses to mutate.ClauseIndex- 1-based clause index for the selected mutation (equal toOccurrencefor this mutator).Occurrence- 1-based mutation occurrence index to target within selected predicate clauses.PrintMutation- Boolean flag to print the original and mutated term plus source location.
Hook object implementing the fail_insertion mutator by inserting fail at deterministic body positions for matching predicate clauses.
Availability:
logtalk_load(mutation_testing(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-03-20
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)