diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-26 18:30:22 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-27 12:34:09 +0300 |
commit | 1b020eeb1195a7afcac35c263220cd3568a4bc69 (patch) | |
tree | 910a01e97c802d488f0706b988336a09877e6e4a /render-test/metadata.hpp | |
parent | d0a84cb7d9866d4d46141ef2735697de3302d50b (diff) | |
download | qtlocation-mapboxgl-1b020eeb1195a7afcac35c263220cd3568a4bc69.tar.gz |
[test runner] Test metrics reports. Check metrics results.
Diffstat (limited to 'render-test/metadata.hpp')
-rw-r--r-- | render-test/metadata.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/render-test/metadata.hpp b/render-test/metadata.hpp index 308c9074f0..5e96301e4d 100644 --- a/render-test/metadata.hpp +++ b/render-test/metadata.hpp @@ -39,6 +39,12 @@ struct MemoryProbe { size_t allocations; }; +class TestMetrics { +public: + bool isEmpty() const { return memory.empty(); } + std::map<std::string, MemoryProbe> memory; +}; + struct TestMetadata { TestMetadata() = default; @@ -72,5 +78,6 @@ struct TestMetadata { std::string errorMessage; double difference = 0.0; - std::map<std::string, MemoryProbe> memoryProbes; -};
\ No newline at end of file + TestMetrics metrics; + TestMetrics expectedMetrics; +}; |