LCOV - code coverage report
Current view: top level - include/base - MooseMain.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 8 8 100.0 %
Date: 2025-07-17 01:28:37 Functions: 1 1 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             : #pragma once
      11             : 
      12             : #include "MooseInit.h"
      13             : #include "MooseApp.h"
      14             : 
      15             : class InputParameters;
      16             : 
      17             : namespace Moose
      18             : {
      19             : 
      20             : /**
      21             :  * Create a MooseApp from command-line arguments.
      22             :  */
      23             : std::shared_ptr<MooseApp>
      24             : createMooseApp(const std::string & default_app_type, int argc, char * argv[]);
      25             : 
      26             : /**
      27             :  * Initialize, create and run a MooseApp
      28             :  */
      29             : template <typename DefaultAppType>
      30             : int
      31       51195 : main(int argc, char * argv[])
      32             : {
      33       51195 :   MooseInit init(argc, argv);
      34             : 
      35       51195 :   DefaultAppType::registerApps();
      36             : 
      37       51195 :   const auto default_app_type = MooseUtils::prettyCppType<DefaultAppType>();
      38             : 
      39       51195 :   auto app = createMooseApp(default_app_type, argc, argv);
      40             : 
      41       51156 :   app->run();
      42             : 
      43       94000 :   return app->exitCode();
      44       47000 : }
      45             : }

Generated by: LCOV version 1.14