LCOV - code coverage report
Current view: top level - oks/test/apps - oks_save_all.cxx (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 14 0
Test Date: 2025-12-21 13:07:08 Functions: 0.0 % 1 0

            Line data    Source code
       1              : #include "CLI/CLI.hpp"
       2              : #include <iostream>
       3              : #include "oks/kernel.hpp"
       4              : #include <fmt/core.h>
       5              : #include <deque>
       6              : 
       7              : namespace dunedaq {
       8              : namespace oks {
       9              : 
      10              : } // namespace oks
      11              : } // namespace dunedaq
      12              : 
      13            0 : int main(int argc, char const *argv[])
      14              : {
      15            0 :     using namespace dunedaq::oks;
      16              : 
      17            0 :     CLI::App app{"App description"};
      18              : 
      19            0 :     std::string file;
      20            0 :     app.add_option("-f,--file", file, "Data file")
      21              :         ->required()
      22            0 :         ->check(CLI::ExistingFile);
      23              : 
      24            0 :     CLI11_PARSE(app, argc, argv);
      25              : 
      26            0 :     fmt::print("Data file: {}\n", file);
      27              : 
      28            0 :     OksKernel k;
      29            0 :     k.load_data(file);
      30            0 :     k.save_all_data();
      31            0 :     k.close_all_data();
      32              : 
      33              :     /* code */
      34            0 :     return 0;
      35            0 : }
        

Generated by: LCOV version 2.0-1