LCOV - code coverage report
Current view: top level - src/base - RayTracingAttributes.C (source / functions) Hit Total Coverage
Test: idaholab/moose ray_tracing: #31405 (292dce) with base fef103 Lines: 10 10 100.0 %
Date: 2025-09-04 07:56:07 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #include "RayTracingAttributes.h"
      11             : 
      12             : // Local includes
      13             : #include "RayTracingObject.h"
      14             : 
      15             : void
      16       22041 : AttribRayTracingStudy::initFrom(const MooseObject * obj)
      17             : {
      18       22041 :   const RayTracingObject * rto = dynamic_cast<const RayTracingObject *>(obj);
      19       22041 :   if (rto)
      20        8431 :     _val = &rto->study();
      21       22041 : }
      22             : 
      23             : bool
      24      360526 : AttribRayTracingStudy::isMatch(const Attribute & other) const
      25             : {
      26      360526 :   auto a = dynamic_cast<const AttribRayTracingStudy *>(&other);
      27      360526 :   return a && (a->_val == _val);
      28             : }
      29             : 
      30             : bool
      31      134027 : AttribRayTracingStudy::isEqual(const Attribute & other) const
      32             : {
      33      134027 :   return isMatch(other);
      34             : }

Generated by: LCOV version 1.14