LCOV - code coverage report
Current view: top level - src/executors - ExecutorInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 8 12 66.7 %
Date: 2025-07-17 01:28:37 Functions: 2 4 50.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 "ExecutorInterface.h"
      11             : 
      12             : #include "FEProblem.h"
      13             : #include "MooseObject.h"
      14             : #include "NullExecutor.h"
      15             : #include "Executor.h"
      16             : #include "MooseApp.h"
      17             : 
      18             : InputParameters
      19           0 : ExecutorInterface::validParams()
      20             : {
      21           0 :   return emptyInputParameters();
      22             : }
      23             : 
      24          88 : ExecutorInterface::ExecutorInterface(const MooseObject * moose_object)
      25          88 :   : _ei_moose_object(moose_object), _ei_app(moose_object->getMooseApp())
      26             : {
      27          88 : }
      28             : 
      29             : Executor &
      30         120 : ExecutorInterface::getExecutor(const std::string & param_name) const
      31             : {
      32         120 :   auto & params = _ei_moose_object->parameters();
      33             : 
      34         120 :   if (!params.isParamValid(param_name))
      35          92 :     return *_ei_app.getNullExecutor();
      36             : 
      37          28 :   return _ei_app.getExecutor(_ei_moose_object->getParam<ExecutorName>(param_name));
      38             : }
      39             : 
      40             : Executor &
      41           0 : ExecutorInterface::getExecutorByName(const ExecutorName & executor_name) const
      42             : {
      43           0 :   return _ei_app.getExecutor(executor_name);
      44             : }

Generated by: LCOV version 1.14