Skip to content

JSONCounter.hpp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "doxide.hpp"
#include "Entity.hpp"

/**
 * JSON processor for coverage data following gcov/gcovr schema.
 * 
 * @ingroup developer
 */
class JSONCounter {
public:
  /**
   * Read in file and update coverage data.
   * 
   * @param file Coverage file.
   * @param root Root entity.
   */
  void count(const std::filesystem::path& file, Entity& root);
};