flitsr.spectrumBuilder.SpectrumUpdater¶
- class flitsr.spectrumBuilder.SpectrumUpdater(spectrum: Spectrum)¶
Bases:
SpectrumBuilderAllows updating of an already created spectrum using the
SpectrumBuilderinterface.- __init__(spectrum: Spectrum)¶
Constructs a
SpectrumBuilderobject to facilitate building aSpectrum.- Parameters:
collapse_methods – bool: (Default value = False) Whether to form a method level spectrum.
Methods
__init__(spectrum)Constructs a
SpectrumBuilderobject to facilitate building aSpectrum.addElement(details, faults[, index])Add a new element to the spectrum, with the given details and faults.
addExecution(test, elem)Mark the specified element as executed in the given test.
addNonExecution(test, elem)Mark the specified element as not executed in the given test.
addTest(name, outcome[, index])Add a new test to the spectrum with the given name, index, and outcome.
copy_test_and_execution(test, spectrum)Copy over the given
testto this spectrum, with the executions given in the supplied other spectrum.form_groups()Given one test pertaining to a row in the spectrum, split the groups according to the coverage.
getElement(index)Retreive the element with the specified index.
get_spectrum()Return the spectrum from this
SpectrumBuilder.get_tests()Return the current list of Tests.
Remove the given
testfrom the spectrum, including any executions related to it.- copy_test_and_execution(test: Test, spectrum: Spectrum)¶
Copy over the given
testto this spectrum, with the executions given in the supplied other spectrum.- Parameters:
test – Spectrum.Test: The test to copy over to this spectrum.
spectrum – Spectrum: The spectrum containing the executions of
test.