LCOV - code coverage report
Current view: top level - eventdispatcher/reporter - variable_address.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 13 13
Test Date: 2025-05-30 15:24:13 Functions: 100.0 % 4 4
Legend: Lines: hit not hit

            Line data    Source code
       1              : // Copyright (c) 2012-2024  Made to Order Software Corp.  All Rights Reserved
       2              : //
       3              : // https://snapwebsites.org/project/eventdispatcher
       4              : // contact@m2osw.com
       5              : //
       6              : // This program is free software: you can redistribute it and/or modify
       7              : // it under the terms of the GNU General Public License as published by
       8              : // the Free Software Foundation, either version 3 of the License, or
       9              : // (at your option) any later version.
      10              : //
      11              : // This program is distributed in the hope that it will be useful,
      12              : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      13              : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14              : // GNU General Public License for more details.
      15              : //
      16              : // You should have received a copy of the GNU General Public License
      17              : // along with this program.  If not, see <https://www.gnu.org/licenses/>.
      18              : 
      19              : // self
      20              : //
      21              : #include    "variable_address.h"
      22              : 
      23              : 
      24              : 
      25              : namespace SNAP_CATCH2_NAMESPACE
      26              : {
      27              : namespace reporter
      28              : {
      29              : 
      30              : 
      31              : 
      32           58 : variable_address::variable_address(std::string const & name)
      33          174 :     : variable(name, "address")
      34              : {
      35           58 : }
      36              : 
      37              : 
      38           52 : addr::addr variable_address::get_address() const
      39              : {
      40           52 :     return f_address;
      41              : }
      42              : 
      43              : 
      44           48 : void variable_address::set_address(addr::addr const & a)
      45              : {
      46           48 :     f_address = a;
      47           48 : }
      48              : 
      49              : 
      50           10 : variable::pointer_t variable_address::clone(std::string const & name) const
      51              : {
      52           10 :     pointer_t clone(std::make_shared<variable_address>(name));
      53           10 :     clone->f_address = f_address;
      54           20 :     return clone;
      55           10 : }
      56              : 
      57              : 
      58              : 
      59              : } // namespace reporter
      60              : } // namespace SNAP_CATCH2_NAMESPACE
      61              : // vim: ts=4 sw=4 et
        

Generated by: LCOV version 2.0-1

Snap C++ | List of projects | List of versions