MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / TestResult

Class TestResult

tests/framework/TestResult.h:39–76  ·  view source on GitHub ↗

Class to store results of a test. * * Currently the execution status and profiling information are stored. */

Source from the content-addressed store, hash-verified

37 * Currently the execution status and profiling information are stored.
38 */
39struct TestResult
40{
41 /** Execution status of a test. */
42 enum class Status
43 {
44 NOT_RUN,
45 SUCCESS,
46 EXPECTED_FAILURE,
47 FAILED,
48 CRASHED,
49 DISABLED
50 };
51
52 /** Default constructor. */
53 TestResult() = default;
54
55 /** Initialise the result with a status.
56 *
57 * @param[in] status Execution status.
58 */
59 TestResult(Status status) : status{status}
60 {
61 }
62
63 /** Initialise the result with a status and profiling information.
64 *
65 * @param[in] status Execution status.
66 * @param[in] measurements Profiling information.
67 */
68 TestResult(Status status, const Profiler::MeasurementsMap &measurements)
69 : status{status}, measurements{measurements}
70 {
71 }
72
73 Status status{Status::NOT_RUN}; /**< Execution status */
74 Profiler::MeasurementsMap measurements{}; /**< Profiling information */
75 std::string header_data{}; /**< Test header data */
76};
77} // namespace framework
78} // namespace test
79} // namespace arm_compute

Callers 1

run_testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected