| 730 | } |
| 731 | |
| 732 | void print_test(const test & t) override { |
| 733 | if (first) { |
| 734 | first = false; |
| 735 | } else { |
| 736 | fprintf(fout, ",\n"); |
| 737 | } |
| 738 | fprintf(fout, " {\n"); |
| 739 | print_fields(test::get_fields(), t.get_values()); |
| 740 | fprintf(fout, " \"samples_ns\": [ %s ],\n", join(t.samples_ns, ", ").c_str()); |
| 741 | fprintf(fout, " \"samples_ts\": [ %s ]\n", join(t.get_ts(), ", ").c_str()); |
| 742 | fprintf(fout, " }"); |
| 743 | fflush(fout); |
| 744 | } |
| 745 | |
| 746 | void print_footer() override { |
| 747 | fprintf(fout, "\n]\n"); |
nothing calls this directly
no test coverage detected