dextool.plugin.mutate.backend.test_mutant.common

Public Imports

dextool.plugin.mutate.backend.type
public import dextool.plugin.mutate.backend.type : Mutation, TestCase, ExitStatus, MutantTimeProfile;

Members

Aliases

CompileResult
alias CompileResult = SumType!(Mutation.Status, bool)
Undocumented in source.
PrintCompileOnFailure
alias PrintCompileOnFailure = NamedType!(bool, Tag!"CompileActionOnFailure", bool.init, TagStringable, ImplicitConvertable)
Undocumented in source.

Classes

AutoCleanup
class AutoCleanup

Paths stored will be removed automatically either when manually called or goes out of scope.

Functions

builtin
void builtin(ShellCommand cmd, DrainElement[] output, const(TestCaseAnalyzeBuiltin)[] tc_analyze_builtin, GatherTestCase app)

Analyze the output from the test suite with one of the builtin analyzers.

compile
CompileResult compile(ShellCommand cmd, Duration timeout, PrintCompileOnFailure printOnFailure)
Undocumented in source. Be warned that the author may not have intended to support it.
createTmpDir
string createTmpDir()
externalProgram
bool externalProgram(ShellCommand cmd, DrainElement[] output, GatherTestCase report, AutoCleanup cleanup)

Run an external program that analyze the output from the test suite for test cases that failed.

hashFiles
auto hashFiles(RangeT files)
Undocumented in source. Be warned that the author may not have intended to support it.
restoreFiles
void restoreFiles(AbsolutePath[] files, FilesysIO fio)
Undocumented in source. Be warned that the author may not have intended to support it.
runTester
TestResult runTester(TestRunner runner, Args args)

Run the test suite to verify a mutation.

Structs

HashFile
struct HashFile
Undocumented in source.
LineRange
struct LineRange
Undocumented in source.
MutationTestResult
struct MutationTestResult

The result of running the test suite on one mutant.

TestBinaryDb
struct TestBinaryDb

A runtime database of the current status of the test binaries and their checksum.

TestCaseAnalyzer
struct TestCaseAnalyzer

Analyze stdout/stderr output from a test suite for test cases that failed (killed) a mutant, which test cases that exists and if any of them are unstable.

TestResult
struct TestResult
Undocumented in source.
TestStopCheck
struct TestStopCheck

The conditions for when to stop mutation testing. Intended to be re-used by both the main FSM and the sub-FSMs.

Meta

License

MPL-2

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Common functionality used both by source and schemata testing of a mutant.