dextool.plugin.mutate.backend.report.utility

Members

Aliases

MutationReprMap
alias MutationReprMap = MutationRepr[MutationId]
Undocumented in source.
Mutations
alias Mutations = bool[MutationId]
Undocumented in source.
MutationsMap
alias MutationsMap = Mutations[TestCase]
Undocumented in source.

Classes

DiffReport
class DiffReport
Undocumented in source.
MutantSample
class MutantSample

High interest mutants.

TestCaseSimilarityAnalyse
class TestCaseSimilarityAnalyse

The result of analysing the test cases to see how similare they are to each other.

TestGroupSimilarity
class TestGroupSimilarity
Undocumented in source.
TestGroupStat
class TestGroupStat
Undocumented in source.

Functions

makeMutationText (from dextool.plugin.mutate.backend.generate_mutant)
auto makeMutationText(Blob file_, Offset offs, Mutation.Kind kind, Language lang) via public import dextool.plugin.mutate.backend.generate_mutant : MakeMutationTextResult, makeMutationText;
reportDeadTestCases
TestCaseDeadStat reportDeadTestCases(Database db)
reportDiff
DiffReport reportDiff(Database db, const(Mutation.Kind)[] kinds, Diff diff, AbsolutePath workdir)
Undocumented in source. Be warned that the author may not have intended to support it.
reportMinimalSet
MinimalTestSet reportMinimalSet(Database db, Mutation.Kind[] kinds)
Undocumented in source. Be warned that the author may not have intended to support it.
reportMutationSubtypeStats
void reportMutationSubtypeStats(long[MakeMutationTextResult] mut_stat, Table!4 tbl)
Undocumented in source. Be warned that the author may not have intended to support it.
reportMutationTestCaseSuggestion
void reportMutationTestCaseSuggestion(Database db, MutationId[] tc_sugg, WriterT writer)
Undocumented in source. Be warned that the author may not have intended to support it.
reportSelectedAliveMutants
MutantSample reportSelectedAliveMutants(Database db, const(Mutation.Kind)[] kinds, long history_nr)
reportStatistics
MutationStat reportStatistics(Database db, Mutation.Kind[] kinds, string file)
Undocumented in source. Be warned that the author may not have intended to support it.
reportTestCaseFullOverlap
TestCaseOverlapStat reportTestCaseFullOverlap(Database db, Mutation.Kind[] kinds)

Test cases that kill exactly the same mutants.

reportTestCaseKillMap
void reportTestCaseKillMap(MutationsMap mut_stat, MutationReprMap mutrepr, WriterTextT writer_txt, WriterT writer)
Undocumented in source. Be warned that the author may not have intended to support it.
reportTestCaseSimilarityAnalyse
TestCaseSimilarityAnalyse reportTestCaseSimilarityAnalyse(Database db, Mutation.Kind[] kinds, ulong limit)

Analyse the similarity between test cases.

reportTestCaseStats
void reportTestCaseStats(Database db, Mutation.Kind[] kinds, long take_, ReportKillSortOrder sort_order, Table!3 tbl)

Update the table with the score of test cases and how many mutants they killed.

reportTestGroups
TestGroupStat reportTestGroups(Database db, const(Mutation.Kind)[] kinds, const(TestGroup) test_g)
Undocumented in source. Be warned that the author may not have intended to support it.
reportTestGroupsSimilarity
TestGroupSimilarity reportTestGroupsSimilarity(Database db, const(Mutation.Kind)[] kinds, const(TestGroup)[] test_groups)

Analyze the similarity between the test groups.

toInternal
string toInternal(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
toSections
ReportSection[] toSections(ReportLevel l)
Undocumented in source. Be warned that the author may not have intended to support it.
toTable
void toTable(TestCaseDeadStat st, Table!2 tbl)
Undocumented in source. Be warned that the author may not have intended to support it.
window
string window(T a, size_t maxlen)

Create a range from a that has at most maxlen+3 letters in it.

Structs

MakeMutationTextResult (from dextool.plugin.mutate.backend.generate_mutant)
struct MakeMutationTextResult via public import dextool.plugin.mutate.backend.generate_mutant : MakeMutationTextResult, makeMutationText;
Undocumented in source.
MinimalTestSet
struct MinimalTestSet
Undocumented in source.
MutationRepr
struct MutationRepr

Information needed to present the mutant to an user.

MutationStat
struct MutationStat

Statistics for a group of mutants.

Table
struct Table(int columnsNr)
Undocumented in source.
TestCaseDeadStat
struct TestCaseDeadStat

Statistics about dead test cases.

TestCaseOverlapStat
struct TestCaseOverlapStat
Undocumented in source.

Templates

toTable
template toTable(Flag!"colWithMutants" colMutants)

Report test cases that completly overlap each other.

Variables

invalidFile
auto invalidFile;
Undocumented in source.
windowSize
auto windowSize;
Undocumented in source.

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/.