dextool.plugin.mutate.backend.report.analyzers

Members

Aliases

AverageTimePerMutant
alias AverageTimePerMutant = NamedType!(Duration, Tag!"AverageTimePerMutant", Duration.init, TagStringable, ImplicitConvertable)
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

calcAvgPerMutant
AverageTimePerMutant calcAvgPerMutant(Database db)

Based on the last 100 tested mutants.

makeTestCaseClassifier
TestCaseClassifier makeTestCaseClassifier(Database db, long minThreshold)
Undocumented in source. Be warned that the author may not have intended to support it.
parseTestCaseMetadata
TestCaseMetadata parseTestCaseMetadata(AbsolutePath metadataPath)
Undocumented in source. Be warned that the author may not have intended to support it.
reportDeadTestCases
TestCaseDeadStat reportDeadTestCases(Database db)
reportDiff
DiffReport reportDiff(Database db, Diff diff, AbsolutePath workdir)
Undocumented in source. Be warned that the author may not have intended to support it.
reportMarkedMutants
MarkedMutantsStat reportMarkedMutants(Database db, string file)
Undocumented in source. Be warned that the author may not have intended to support it.
reportMinimalSet
MinimalTestSet reportMinimalSet(Database db)
Undocumented in source. Be warned that the author may not have intended to support it.
reportMutationScoreHistory
MutationScoreHistory reportMutationScoreHistory(Database db)
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.
reportScore
MutationScore reportScore(Database db, string file)
Undocumented in source. Be warned that the author may not have intended to support it.
reportScores
FileScore[] reportScores(Database db, Path[] files)
Undocumented in source. Be warned that the author may not have intended to support it.
reportSelectedAliveMutants
MutantSample reportSelectedAliveMutants(Database db, long historyNr)
reportStatistics
MutationStat reportStatistics(Database db, string file)
Undocumented in source. Be warned that the author may not have intended to support it.
reportSyncStatus
SyncStatus reportSyncStatus(Database db, long nrMutants)
Undocumented in source. Be warned that the author may not have intended to support it.
reportTestCaseFullOverlap
TestCaseOverlapStat reportTestCaseFullOverlap(Database db)

Test cases that kill exactly the same mutants.

reportTestCaseSimilarityAnalyse
TestCaseSimilarityAnalyse reportTestCaseSimilarityAnalyse(Database db, ulong limit)

Analyse the similarity between test cases.

reportTestCaseStats
TestCaseStat reportTestCaseStats(Database db)

Extract the number of source code mutants that a test case has killed and how much the kills contributed to the total.

reportTestCaseUniqueness
TestCaseUniqueness reportTestCaseUniqueness(Database db)
reportTestGroups
TestGroupStat reportTestGroups(Database db, 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(TestGroup)[] test_groups)

Analyze the similarity between the test groups.

reportTrendByCodeChange
ScoreTrendByCodeChange reportTrendByCodeChange(Database db)

Report the latest date a file was changed and the score.

toTable
void toTable(TestCaseStat st, long take_, ReportKillSortOrder sort_order, Table!3 tbl)

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

toTable
void toTable(TestCaseDeadStat st, Table!2 tbl)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

EstimateMutationScore
struct EstimateMutationScore

Estimate the mutation score.

EstimateScore
struct EstimateScore

Estimate the mutation score.

FileScore
struct FileScore
Undocumented in source.
MarkedMutantsStat
struct MarkedMutantsStat
Undocumented in source.
MinimalTestSet
struct MinimalTestSet
Undocumented in source.
MutantTimeProfile (from dextool.plugin.mutate.backend.type)
struct MutantTimeProfile via public import dextool.plugin.mutate.backend.type : MutantTimeProfile;

Profile of what a mutant spent time on to collect a status.

MutationScore
struct MutationScore

Only the mutation score thus a subset of all statistics.

MutationScoreHistory
struct MutationScoreHistory

History of how the mutation score have evolved over time.

MutationStat
struct MutationStat

Statistics for a group of mutants.

ScoreTrendByCodeChange
struct ScoreTrendByCodeChange

Trend based on the latest code changes

SyncStatus
struct SyncStatus

Sync status is how old the information about mutants and their status is compared to when the tests or source code where last changed.

Table (from dextool.plugin.mutate.backend.report.utility)
struct Table(int columnsNr) via public import dextool.plugin.mutate.backend.report.utility : Table;
Undocumented in source.
TestCaseClassifier
struct TestCaseClassifier
Undocumented in source.
TestCaseDeadStat
struct TestCaseDeadStat

Statistics about dead test cases.

TestCaseMetadata
struct TestCaseMetadata
Undocumented in source.
TestCaseOverlapStat
struct TestCaseOverlapStat
Undocumented in source.
TestCaseStat
struct TestCaseStat

Test case score based on how many mutants they killed.

TestCaseUniqueness
struct TestCaseUniqueness
Undocumented in source.

Templates

toTable
template toTable(Flag!"colWithMutants" colMutants)

Report test cases that completly overlap each other.

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

This module contains different kinds of report methods and statistical analyzers of the data gathered in the database.