https://www.cdslab.org/paramonte/fortran/2
Current view: top level - test - test_pm_distGamma.F90 (source / functions) Hit Total Coverage
Test: ParaMonte 2.0.0 :: Serial Fortran - Code Coverage Report Lines: 13 13 100.0 %
Date: 2024-04-08 03:18:57 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
       2             : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
       3             : !!!!                                                                                                                            !!!!
       4             : !!!!    ParaMonte: Parallel Monte Carlo and Machine Learning Library.                                                           !!!!
       5             : !!!!                                                                                                                            !!!!
       6             : !!!!    Copyright (C) 2012-present, The Computational Data Science Lab                                                          !!!!
       7             : !!!!                                                                                                                            !!!!
       8             : !!!!    This file is part of the ParaMonte library.                                                                             !!!!
       9             : !!!!                                                                                                                            !!!!
      10             : !!!!    LICENSE                                                                                                                 !!!!
      11             : !!!!                                                                                                                            !!!!
      12             : !!!!       https://github.com/cdslaborg/paramonte/blob/main/LICENSE.md                                                          !!!!
      13             : !!!!                                                                                                                            !!!!
      14             : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      15             : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      16             : 
      17             : !>  \brief This module contains tests of the module [pm_distGamma](@ref pm_distGamma).
      18             : !>
      19             : !>  \fintest
      20             : !>
      21             : !>  \author
      22             : !>  \FatemehBagheri, 12:27 AM Tuesday, February 22, 2022, Dallas, TX
      23             : 
      24             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      25             : 
      26             : module test_pm_distGamma
      27             : 
      28             :     use pm_distGamma
      29             :     use pm_err, only: err_type
      30             :     use pm_test, only: test_type, IK, LK
      31             : 
      32             :     implicit none
      33             : 
      34             :     private
      35             :     public :: setTest
      36             :     type(test_type) :: test
      37             : 
      38             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      39             : 
      40             :     interface
      41             : 
      42             : #if     RK5_ENABLED
      43             :         module function test_getGammaLogPDF_RK5_1() result(assertion); logical(LK) :: assertion; end function
      44             : #endif
      45             : #if     RK4_ENABLED
      46             :         module function test_getGammaLogPDF_RK4_1() result(assertion); logical(LK) :: assertion; end function
      47             : #endif
      48             : #if     RK3_ENABLED
      49             :         module function test_getGammaLogPDF_RK3_1() result(assertion); logical(LK) :: assertion; end function
      50             : #endif
      51             : #if     RK2_ENABLED
      52             :         module function test_getGammaLogPDF_RK2_1() result(assertion); logical(LK) :: assertion; end function
      53             : #endif
      54             : #if     RK1_ENABLED
      55             :         module function test_getGammaLogPDF_RK1_1() result(assertion); logical(LK) :: assertion; end function
      56             : #endif
      57             : 
      58             :     end interface
      59             : 
      60             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      61             : 
      62             :     interface
      63             : 
      64             : #if     RK5_ENABLED
      65             :         module function test_setGammaLogPDF_RK5_1() result(assertion); logical(LK) :: assertion; end function
      66             : #endif
      67             : #if     RK4_ENABLED
      68             :         module function test_setGammaLogPDF_RK4_1() result(assertion); logical(LK) :: assertion; end function
      69             : #endif
      70             : #if     RK3_ENABLED
      71             :         module function test_setGammaLogPDF_RK3_1() result(assertion); logical(LK) :: assertion; end function
      72             : #endif
      73             : #if     RK2_ENABLED
      74             :         module function test_setGammaLogPDF_RK2_1() result(assertion); logical(LK) :: assertion; end function
      75             : #endif
      76             : #if     RK1_ENABLED
      77             :         module function test_setGammaLogPDF_RK1_1() result(assertion); logical(LK) :: assertion; end function
      78             : #endif
      79             : 
      80             :     end interface
      81             : 
      82             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      83             : 
      84             : contains
      85             : 
      86             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      87             : 
      88           2 :     subroutine setTest()
      89             : 
      90           2 :         test = test_type(MODULE_NAME)
      91             : 
      92             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      93             : 
      94             : #if     RK5_ENABLED
      95             :         call test%run(test_getGammaLogPDF_RK5_1, SK_"test_getGammaLogPDF_RK5_1")
      96             : #endif
      97             : #if     RK4_ENABLED
      98           2 :         call test%run(test_getGammaLogPDF_RK4_1, SK_"test_getGammaLogPDF_RK4_1")
      99             : #endif
     100             : #if     RK3_ENABLED
     101           2 :         call test%run(test_getGammaLogPDF_RK3_1, SK_"test_getGammaLogPDF_RK3_1")
     102             : #endif
     103             : #if     RK3_ENABLED
     104           2 :         call test%run(test_getGammaLogPDF_RK3_1, SK_"test_getGammaLogPDF_RK3_1")
     105             : #endif
     106             : #if     RK2_ENABLED
     107           2 :         call test%run(test_getGammaLogPDF_RK2_1, SK_"test_getGammaLogPDF_RK2_1")
     108             : #endif
     109             : #if     RK1_ENABLED
     110           2 :         call test%run(test_getGammaLogPDF_RK1_1, SK_"test_getGammaLogPDF_RK1_1")
     111             : #endif
     112             : 
     113             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     114             : 
     115             : #if     RK5_ENABLED
     116             :         call test%run(test_setGammaLogPDF_RK5_1, SK_"test_setGammaLogPDF_RK5_1")
     117             : #endif
     118             : #if     RK4_ENABLED
     119           2 :         call test%run(test_setGammaLogPDF_RK4_1, SK_"test_setGammaLogPDF_RK4_1")
     120             : #endif
     121             : #if     RK3_ENABLED
     122           2 :         call test%run(test_setGammaLogPDF_RK3_1, SK_"test_setGammaLogPDF_RK3_1")
     123             : #endif
     124             : #if     RK2_ENABLED
     125           2 :         call test%run(test_setGammaLogPDF_RK2_1, SK_"test_setGammaLogPDF_RK2_1")
     126             : #endif
     127             : #if     RK1_ENABLED
     128           2 :         call test%run(test_setGammaLogPDF_RK1_1, SK_"test_setGammaLogPDF_RK1_1")
     129             : #endif
     130             : 
     131             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     132           2 :         call test%summarize()
     133             : 
     134           2 :     end subroutine setTest
     135             : 
     136             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     137             : 
     138             : end module test_pm_distGamma

ParaMonte: Parallel Monte Carlo and Machine Learning Library 
The Computational Data Science Lab
© Copyright 2012 - 2024