LCOV - code coverage report
Current view: top level - generated/src/ad/map/match - ObjectReferencePoints.cpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 42 42 100.0 %
Date: 2022-10-04 09:48:07 Functions: 2 2 100.0 %
Branches: 7 7 100.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
       3                 :            :  *
       4                 :            :  * Copyright (C) 2018-2020 Intel Corporation
       5                 :            :  *
       6                 :            :  * SPDX-License-Identifier: MIT
       7                 :            :  *
       8                 :            :  * ----------------- END LICENSE BLOCK -----------------------------------
       9                 :            :  */
      10                 :            : 
      11                 :            : /**
      12                 :            :  * Generated file
      13                 :            :  * @file
      14                 :            :  *
      15                 :            :  * Generator Version : 11.0.0-1997
      16                 :            :  */
      17                 :            : 
      18                 :            : #include "ad/map/match/ObjectReferencePoints.hpp"
      19                 :            : #include <stdexcept>
      20                 :            : 
      21                 :         10 : std::string toString(::ad::map::match::ObjectReferencePoints const e)
      22                 :            : {
      23   [ +  +  +  +  :         10 :   switch (e)
                +  +  + ]
      24                 :            :   {
      25                 :          2 :     case ::ad::map::match::ObjectReferencePoints::FrontLeft:
      26                 :          2 :       return std::string("::ad::map::match::ObjectReferencePoints::FrontLeft"); // LCOV_EXCL_BR_LINE
      27                 :          1 :     case ::ad::map::match::ObjectReferencePoints::FrontRight:
      28                 :          1 :       return std::string("::ad::map::match::ObjectReferencePoints::FrontRight"); // LCOV_EXCL_BR_LINE
      29                 :          1 :     case ::ad::map::match::ObjectReferencePoints::RearLeft:
      30                 :          1 :       return std::string("::ad::map::match::ObjectReferencePoints::RearLeft"); // LCOV_EXCL_BR_LINE
      31                 :          1 :     case ::ad::map::match::ObjectReferencePoints::RearRight:
      32                 :          1 :       return std::string("::ad::map::match::ObjectReferencePoints::RearRight"); // LCOV_EXCL_BR_LINE
      33                 :          1 :     case ::ad::map::match::ObjectReferencePoints::Center:
      34                 :          1 :       return std::string("::ad::map::match::ObjectReferencePoints::Center"); // LCOV_EXCL_BR_LINE
      35                 :          1 :     case ::ad::map::match::ObjectReferencePoints::NumPoints:
      36                 :          1 :       return std::string("::ad::map::match::ObjectReferencePoints::NumPoints"); // LCOV_EXCL_BR_LINE
      37                 :          3 :     default:
      38                 :          3 :       return std::string("UNKNOWN ENUM VALUE"); // LCOV_EXCL_BR_LINE
      39                 :            :   }
      40                 :            : }
      41                 :            : 
      42                 :         13 : template <>::ad::map::match::ObjectReferencePoints fromString(std::string const &str)
      43                 :            : {
      44                 :         13 :   if (str == std::string("::ad::map::match::ObjectReferencePoints::FrontLeft")) // LCOV_EXCL_BR_LINE
      45                 :            :   {
      46                 :          1 :     return ::ad::map::match::ObjectReferencePoints::FrontLeft;
      47                 :            :   }
      48                 :         12 :   if (str == std::string("FrontLeft")) // LCOV_EXCL_BR_LINE
      49                 :            :   {
      50                 :          1 :     return ::ad::map::match::ObjectReferencePoints::FrontLeft;
      51                 :            :   }
      52                 :         11 :   if (str == std::string("::ad::map::match::ObjectReferencePoints::FrontRight")) // LCOV_EXCL_BR_LINE
      53                 :            :   {
      54                 :          1 :     return ::ad::map::match::ObjectReferencePoints::FrontRight;
      55                 :            :   }
      56                 :         10 :   if (str == std::string("FrontRight")) // LCOV_EXCL_BR_LINE
      57                 :            :   {
      58                 :          1 :     return ::ad::map::match::ObjectReferencePoints::FrontRight;
      59                 :            :   }
      60                 :          9 :   if (str == std::string("::ad::map::match::ObjectReferencePoints::RearLeft")) // LCOV_EXCL_BR_LINE
      61                 :            :   {
      62                 :          1 :     return ::ad::map::match::ObjectReferencePoints::RearLeft;
      63                 :            :   }
      64                 :          8 :   if (str == std::string("RearLeft")) // LCOV_EXCL_BR_LINE
      65                 :            :   {
      66                 :          1 :     return ::ad::map::match::ObjectReferencePoints::RearLeft;
      67                 :            :   }
      68                 :          7 :   if (str == std::string("::ad::map::match::ObjectReferencePoints::RearRight")) // LCOV_EXCL_BR_LINE
      69                 :            :   {
      70                 :          1 :     return ::ad::map::match::ObjectReferencePoints::RearRight;
      71                 :            :   }
      72                 :          6 :   if (str == std::string("RearRight")) // LCOV_EXCL_BR_LINE
      73                 :            :   {
      74                 :          1 :     return ::ad::map::match::ObjectReferencePoints::RearRight;
      75                 :            :   }
      76                 :          5 :   if (str == std::string("::ad::map::match::ObjectReferencePoints::Center")) // LCOV_EXCL_BR_LINE
      77                 :            :   {
      78                 :          1 :     return ::ad::map::match::ObjectReferencePoints::Center;
      79                 :            :   }
      80                 :          4 :   if (str == std::string("Center")) // LCOV_EXCL_BR_LINE
      81                 :            :   {
      82                 :          1 :     return ::ad::map::match::ObjectReferencePoints::Center;
      83                 :            :   }
      84                 :          3 :   if (str == std::string("::ad::map::match::ObjectReferencePoints::NumPoints")) // LCOV_EXCL_BR_LINE
      85                 :            :   {
      86                 :          1 :     return ::ad::map::match::ObjectReferencePoints::NumPoints;
      87                 :            :   }
      88                 :          2 :   if (str == std::string("NumPoints")) // LCOV_EXCL_BR_LINE
      89                 :            :   {
      90                 :          1 :     return ::ad::map::match::ObjectReferencePoints::NumPoints;
      91                 :            :   }
      92                 :          1 :   throw std::out_of_range("Invalid enum literal"); // LCOV_EXCL_BR_LINE
      93                 :            : }

Generated by: LCOV version 1.14