LCOV - code coverage report
Current view: top level - problems/tests - test_WLSSubsetProblem.cpp (source / functions) Hit Total Coverage
Test: test_coverage.info.cleaned Lines: 4 4 100.0 %
Date: 2022-02-28 03:37:41 Functions: 5 5 100.0 %

          Line data    Source code
       1             : /**
       2             :  * @file test_WLSSubsetProblem.cpp
       3             :  *
       4             :  * @brief Tests for the WLSSubsetProblem 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           8 : TEST_CASE_TEMPLATE("WLSSubsetProblem: Empty Test", data_t, float, double)
      19             : {
      20             :     // eliminate the timing info from console for the tests
      21           2 :     Logger::setLevel(Logger::LogLevel::WARN);
      22             : 
      23           2 :     GIVEN("a WLS Problem with 2 subsets")
      24             :     {
      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             :     }
      31           2 : }
      32             : 
      33             : TEST_SUITE_END();

Generated by: LCOV version 1.15