All checks were successful
Tests / Clang total: 1533, passed: 1533
Clang |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / Debug total: 1531, passed: 1531
Tests / SIMD fallback total: 1533, passed: 1533
Tests / Release [gcc] total: 1533, passed: 1533
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|0|0|0|0|:clap:
Tests / Release [gcc,aarch64] total: 1144, passed: 1144
Tests / Coverage total: 1151, passed: 1151
Code Coverage #### Project Overview
No changes detected, that affect the code coverage.
* Line Coverage: 98.72% (1695/1717)
* Branch Coverage: 64.59% (1503/2327)
* Complexity Density: 0.00
* Lines of Code: 1717
#### Quality Gates Summary
Output truncated.
weaselab/conflict-set/pipeline/head This commit looks good
33 lines
968 B
C++
33 lines
968 B
C++
#include "Internal.h"
|
|
#include <cstdint>
|
|
#include <fstream>
|
|
#include <sstream>
|
|
|
|
int main(int argc, char **argv) {
|
|
for (int i = 1; i < argc; ++i) {
|
|
std::ifstream t(argv[i], std::ios::binary);
|
|
std::stringstream buffer;
|
|
buffer << t.rdbuf();
|
|
auto str = buffer.str();
|
|
TestDriver<ConflictSet> driver{(const uint8_t *)str.data(), str.size()};
|
|
while (!driver.next())
|
|
;
|
|
if (!driver.ok) {
|
|
abort();
|
|
}
|
|
|
|
ConflictSet::MetricsV1 *metrics;
|
|
int metricsCount;
|
|
driver.cs.getMetricsV1(&metrics, &metricsCount);
|
|
printf("#################### METRICS FOR %s ####################\n",
|
|
argv[i]);
|
|
for (int i = 0; i < metricsCount; ++i) {
|
|
printf("# HELP %s %s\n", metrics[i].name, metrics[i].help);
|
|
printf("# TYPE %s %s\n", metrics[i].name,
|
|
metrics[i].type == metrics[i].Counter ? "counter" : "gauge");
|
|
printf("%s %g\n", metrics[i].name, metrics[i].getValue());
|
|
}
|
|
puts("");
|
|
}
|
|
}
|