Skip to content

Notes testing submodule

Franz Wöllert edited this page Dec 29, 2019 · 1 revision

mutants

Mutation

Single atomic data modification (column, row, value)

Mutant

Collection of one or more mutations.

  • init (mutations[Mutation, Mutant])
  • mutations: Return all defined mutations (recursive mutation check)
  • mutate: modify plain frame with defined mutations (ensure copy!)
  • validate_unique_mutations (check for mutation overwrites)

plainframe

plaincolumn

  • typedcolumn (property)

datatestcase

Mutant formulations:

  • dict refers to single mutant with one or more mutations
  • list of dicts refer to multiple mutants with one or more mutations
# single mutant with single mutation
muts = {("col1", 2): 5}

# single mutant with multiple mutations
muts = {("col1", 2): 5, ("col2", 1): "asd"}

# multiple mutants
muts = [{("col1", 2): 5},
        {("col1", 2): 3}]

Clone this wiki locally