Quinoa all test code coverage report
Current view: top level - Control/Options - FieldFile.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 4 5 80.0 %
Date: 2024-04-29 14:59:56 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 10 20 50.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/Control/Options/FieldFile.hpp
       4                 :            :   \copyright 2012-2015 J. Bakosi,
       5                 :            :              2016-2018 Los Alamos National Security, LLC.,
       6                 :            :              2019-2021 Triad National Security, LLC.
       7                 :            :              All rights reserved. See the LICENSE file for details.
       8                 :            :   \brief     Field output file type options
       9                 :            :   \details   Field output file type options
      10                 :            : */
      11                 :            : // *****************************************************************************
      12                 :            : #ifndef FieldFileOptions_h
      13                 :            : #define FieldFileOptions_h
      14                 :            : 
      15                 :            : #include <brigand/sequences/list.hpp>
      16                 :            : 
      17                 :            : #include "QuinoaBuildConfig.hpp"
      18                 :            : #include "Toggle.hpp"
      19                 :            : #include "PUPUtil.hpp"
      20                 :            : 
      21                 :            : namespace tk {
      22                 :            : namespace ctr {
      23                 :            : 
      24                 :            : //! Field output file types
      25                 :            : enum class FieldFileType : uint8_t { EXODUSII
      26                 :            :                                    };
      27                 :            : 
      28                 :            : //! \brief Pack/Unpack FieldFileType: forward overload to generic enum class
      29                 :            : //!   packer
      30                 :       3110 : inline void operator|( PUP::er& p, FieldFileType& e ) { PUP::pup( p, e ); }
      31                 :            : 
      32                 :            : //! \brief FieldFileType options: outsource searches to base templated on enum
      33                 :            : //!   type
      34                 :            : class FieldFile : public tk::Toggle< FieldFileType > {
      35                 :            : 
      36                 :            :   public:
      37                 :            :     //! \brief Options constructor
      38                 :            :     //! \details Simply initialize in-line and pass associations to base, which
      39                 :            :     //!    will handle client interactions
      40                 :        195 :     explicit FieldFile() :
      41                 :            :       tk::Toggle< FieldFileType >(
      42                 :            :         //! Group, i.e., options, name 
      43                 :            :         "Field output file type",
      44                 :            :         //! Enums -> names
      45                 :          0 :         { { FieldFileType::EXODUSII, "exodusii" },
      46                 :            :         },
      47                 :            :         //! keywords -> Enums
      48                 :        390 :         { { "exodusii", FieldFileType::EXODUSII },
      49 [ +  - ][ +  - ]:        585 :         } ) {}
         [ +  - ][ +  - ]
         [ +  - ][ +  - ]
         [ +  + ][ +  + ]
         [ -  - ][ -  - ]
      50                 :            : };
      51                 :            : 
      52                 :            : } // ctr::
      53                 :            : } // tk:::
      54                 :            : 
      55                 :            : #endif // FieldFileOptions_h

Generated by: LCOV version 1.14