LCOV - code coverage report
Current view: top level - elsa/problems/tests - test_SubsetProblem.cpp (source / functions) Hit Total Coverage
Test: coverage-all.lcov Lines: 6 6 100.0 %
Date: 2022-08-25 03:05:39 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /**
       2             :  * @file test_SubsetProblem.cpp
       3             :  *
       4             :  * @brief Tests for the SubsetProblem class
       5             :  *
       6             :  * @author Michael Loipführer - initial code
       7             :  */
       8             : 
       9             : #include "doctest/doctest.h"
      10             : 
      11             : #include "Logger.h"
      12             : 
      13             : using namespace elsa;
      14             : using namespace doctest;
      15             : 
      16             : TEST_SUITE_BEGIN("problems");
      17             : 
      18             : TEST_CASE_TEMPLATE("SubsetProblem: Empty test", data_t, float, double)
      19           2 : {
      20             :     // eliminate the timing info from console for the tests
      21           2 :     Logger::setLevel(Logger::LogLevel::WARN);
      22             : 
      23           2 :     GIVEN("A small ordered subset problem")
      24           2 :     {
      25             :         // TODO: implement actual minimal tests
      26             :         // This is quite hard as the default operators (Identity, Scaling) do not allow for
      27             :         // their domain descriptor to differ from their range descriptor and therefore cant be
      28             :         // split up into subsets. Tests using the Phantom generator, an actual projector and a
      29             :         // SubsetSampler would work but require a whole bunch of other components.
      30           2 :     }
      31           2 : }
      32             : 
      33             : TEST_SUITE_END();

Generated by: LCOV version 1.14