SPeCS Packages Documentation
    Preparing search index...

    Iterative mutator, allows to perform one mutation at a time, and restore the code before each mutation.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    automaticRestore: boolean = true

    If true, before each call to .mutate() will check if the code is already mutated, and call restore before the mutation is applied

    currentMutatedPoint: LaraJoinPoint | undefined = undefined
    currentOriginalPoint: LaraJoinPoint | undefined = undefined
    hasFinished: boolean = false
    isMutated: boolean = false

    True if the current code is mutated, false otherwise

    joinPoints: LaraJoinPoint[] = []
    mutantIterator: Generator<MutationResult, void, unknown> | undefined = undefined
    mutations: Mutation[]
    name: string

    Methods

    • Enables/disables automatic restore. Is enabled by default.

      If enabled, before each call to .mutate() will check if the code is already mutated, and call restore before the mutation is applied.

      Parameters

      • value: boolean = true

        true to enable, false to disable

      Returns void