dextool.plugin.mutate.backend.report.analyzers

Public Imports

dextool.plugin.mutate.backend.report.utility
public import dextool.plugin.mutate.backend.report.utility : Table;
dextool.plugin.mutate.backend.type
public import dextool.plugin.mutate.backend.type : MutantTimeProfile;

Members

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

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, const(Mutation.Kind)[] kinds, Diff diff, AbsolutePath workdir)
Undocumented in source. Be warned that the author may not have intended to support it.
reportMarkedMutants
MarkedMutantsStat reportMarkedMutants(Database db, Mutation.Kind[] kinds, string file)
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.
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, Mutation.Kind[] kinds, string file)
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 historyNr)
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.
reportSyncStatus
SyncStatus reportSyncStatus(Database db, const(Mutation.Kind)[] kinds, long nrMutants)
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.

reportTestCaseSimilarityAnalyse
TestCaseSimilarityAnalyse reportTestCaseSimilarityAnalyse(Database db, Mutation.Kind[] kinds, ulong limit)

Analyse the similarity between test cases.

reportTestCaseStats
TestCaseStat reportTestCaseStats(Database db, Mutation.Kind[] kinds)

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, Mutation.Kind[] kinds)
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.

reportTrendByCodeChange
ScoreTrendByCodeChange reportTrendByCodeChange(Database db, Mutation.Kind[] kinds)

Estimate the mutation score by running a kalman filter over the mutants in the order they have been tested. It gives a rough estimate of where the test suites quality is going over time.

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.

MarkedMutantsStat
struct MarkedMutantsStat
Undocumented in source.
MinimalTestSet
struct MinimalTestSet
Undocumented in source.
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

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

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.