24 #ifndef ARM_COMPUTE_TEST_PRETTYPRINTER 25 #define ARM_COMPUTE_TEST_PRETTYPRINTER 47 void print_entry(
const std::string &name,
const std::string &value)
override;
62 std::string begin_color(
const std::string &color)
const;
63 std::string end_color()
const;
65 bool _color_output{
true };
Implementation of a Printer that produces human readable output.
void print_errors_footer() override
Print footer after errors.
void print_global_header() override
Print global header.
void print_list_tests(const std::vector< TestInfo > &infos) override
Print the list of all the tests.
Abstract printer class used by the Framework to present output.
void print_errors_header() override
Print header before errors.
Copyright (c) 2017-2018 ARM Limited.
void print_global_footer() override
Print global footer.
Information about a test case.
Printer()=default
Default constructor.
std::map< std::string, std::vector< Measurement > > MeasurementsMap
Mapping from instrument ids to their measurements.
void print_error(const std::exception &error, bool expected) override
Print test error.
void print_run_header() override
Print header before running all tests.
void print_run_footer() override
Print footer after running all tests.
void print_entry(const std::string &name, const std::string &value) override
Print an entry consisting of a (name, value) pair.
void error(const char *function, const char *file, const int line, const char *msg,...)
Print an error message then throw an std::runtime_error.
void print_test_footer() override
Print footer after a test.
void set_color_output(bool color_output)
Set if the output is colored.
void print_measurements(const Profiler::MeasurementsMap &measurements) override
Print measurements for a test.
void print_info(const std::string &info) override
Print test log info.
void print_test_header(const TestInfo &info) override
Print header before a test.