TestReport

public class TestReport

Aggregates test results and generates formatted reports.

Collects SkillTestResult objects from the test run and provides:

See also

- The main test orchestrator that populates this report

Constructors

Link copied to clipboard
public void TestReport(UUID playerUUID)

Properties

Link copied to clipboard
public Map<Integer, Array<double>> defensiveDamageData
Link copied to clipboard
public long endTime
Link copied to clipboard
public int failedTests
Link copied to clipboard
public Map<SkillType, Map<Integer, Array<double>>> offensiveDamageData
Link copied to clipboard
public int passedTests
Link copied to clipboard
public final UUID playerUUID
Link copied to clipboard
public final List<SkillTestResult> results
Link copied to clipboard
public final Map<SkillType, List<SkillTestResult>> resultsByType
Link copied to clipboard
public final List<SkillTestResult> skippedResults
Link copied to clipboard
public int skippedTests
Link copied to clipboard
public final long startTime
Link copied to clipboard
public int totalTests

Functions

Link copied to clipboard
public void addResult(SkillTestResult result)
Link copied to clipboard
public void addSkippedResult(SkillTestResult result)
Adds a skipped skill result.
Link copied to clipboard
public String exportToText()
Exports the report to a file-friendly format.
Link copied to clipboard
public ItemStack generateBook()
Generates a written book summarizing the test results.
Link copied to clipboard
public List<String> generateDetailedReport()
Link copied to clipboard
public List<String> generateSummary()
Link copied to clipboard
public Map<Integer, Array<double>> getDefensiveDamageData()
Link copied to clipboard
public long getEndTime()
Link copied to clipboard
public int getFailedTests()
Link copied to clipboard
public static TestReport getLastReport(UUID playerUUID)
Gets the last stored test report for a player.
Link copied to clipboard
public Map<SkillType, Map<Integer, Array<double>>> getOffensiveDamageData()
Link copied to clipboard
public int getPassedTests()
Link copied to clipboard
public UUID getPlayerUUID()
Link copied to clipboard
public List<SkillTestResult> getResults()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public int getSkippedTests()
Link copied to clipboard
public long getStartTime()
Link copied to clipboard
public int getTotalTests()
Link copied to clipboard
public void setDefensiveDamageData(Map<Integer, Array<double>> defensiveDamageData)
Link copied to clipboard
public void setOffensiveDamageData(Map<SkillType, Map<Integer, Array<double>>> offensiveDamageData)
Link copied to clipboard
public void store()
Stores this report as the last report for the player.