https://www.cdslab.org/paramonte/fortran/2
Current view: top level - test - test_pm_mathCompare.F90 (source / functions) Hit Total Coverage
Test: ParaMonte 2.0.0 :: Serial Fortran - Code Coverage Report Lines: 12 12 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
      18             : !>  This module contains tests of the module [pm_mathCompare](@ref pm_mathCompare).
      19             : !>
      20             : !>  \fintest
      21             : !>
      22             : !>  \author
      23             : !>  \AmirShahmoradi, Tuesday 2:06 AM, September 21, 2021, Dallas, TX
      24             : 
      25             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      26             : 
      27             : module test_pm_mathCompare
      28             : 
      29             :     use pm_mathCompare ! LCOV_EXCL_LINE
      30             :     use pm_err, only: err_type
      31             :     use pm_test, only: test_type, LK
      32             :     use pm_kind, only: LK
      33             :     implicit none
      34             : 
      35             :     private
      36             :     public :: setTest
      37             :     type(test_type) :: test
      38             : 
      39             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      40             : 
      41             :     !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      42             : 
      43             :     interface
      44             : #if     CK5_ENABLED
      45             :         module function test_isClose_CK5_1() result(assertion); logical(LK) :: assertion; end function
      46             : #endif
      47             : #if     CK4_ENABLED
      48             :         module function test_isClose_CK4_1() result(assertion); logical(LK) :: assertion; end function
      49             : #endif
      50             : #if     CK3_ENABLED
      51             :         module function test_isClose_CK3_1() result(assertion); logical(LK) :: assertion; end function
      52             : #endif
      53             : #if     CK2_ENABLED
      54             :         module function test_isClose_CK2_1() result(assertion); logical(LK) :: assertion; end function
      55             : #endif
      56             : #if     CK1_ENABLED
      57             :         module function test_isClose_CK1_1() result(assertion); logical(LK) :: assertion; end function
      58             : #endif
      59             :     end interface
      60             : 
      61             :     !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      62             : 
      63             :     interface
      64             : #if     RK5_ENABLED
      65             :         module function test_isClose_RK5_1() result(assertion); logical(LK) :: assertion; end function
      66             : #endif
      67             : #if     RK4_ENABLED
      68             :         module function test_isClose_RK4_1() result(assertion); logical(LK) :: assertion; end function
      69             : #endif
      70             : #if     RK3_ENABLED
      71             :         module function test_isClose_RK3_1() result(assertion); logical(LK) :: assertion; end function
      72             : #endif
      73             : #if     RK2_ENABLED
      74             :         module function test_isClose_RK2_1() result(assertion); logical(LK) :: assertion; end function
      75             : #endif
      76             : #if     RK1_ENABLED
      77             :         module function test_isClose_RK1_1() result(assertion); logical(LK) :: assertion; end function
      78             : #endif
      79             :     end interface
      80             : 
      81             :     !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      82             : 
      83             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      84             : 
      85             : contains
      86             : 
      87             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      88             : 
      89           1 :     subroutine setTest()
      90             : 
      91           1 :         test = test_type(MODULE_NAME)
      92             : 
      93             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      94             : 
      95             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      96             : 
      97             : #if     CK5_ENABLED
      98             :         call test%run(test_isClose_CK5_1, SK_"test_isClose_CK5_1")
      99             : #endif
     100             : #if     CK4_ENABLED
     101           1 :         call test%run(test_isClose_CK4_1, SK_"test_isClose_CK4_1")
     102             : #endif
     103             : #if     CK3_ENABLED
     104           1 :         call test%run(test_isClose_CK3_1, SK_"test_isClose_CK3_1")
     105             : #endif
     106             : #if     CK2_ENABLED
     107           1 :         call test%run(test_isClose_CK2_1, SK_"test_isClose_CK2_1")
     108             : #endif
     109             : #if     CK1_ENABLED
     110           1 :         call test%run(test_isClose_CK1_1, SK_"test_isClose_CK1_1")
     111             : #endif
     112             : 
     113             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     114             : 
     115             : #if     RK5_ENABLED
     116             :         call test%run(test_isClose_RK5_1, SK_"test_isClose_RK5_1")
     117             : #endif
     118             : #if     RK4_ENABLED
     119           1 :         call test%run(test_isClose_RK4_1, SK_"test_isClose_RK4_1")
     120             : #endif
     121             : #if     RK3_ENABLED
     122           1 :         call test%run(test_isClose_RK3_1, SK_"test_isClose_RK3_1")
     123             : #endif
     124             : #if     RK2_ENABLED
     125           1 :         call test%run(test_isClose_RK2_1, SK_"test_isClose_RK2_1")
     126             : #endif
     127             : #if     RK1_ENABLED
     128           1 :         call test%run(test_isClose_RK1_1, SK_"test_isClose_RK1_1")
     129             : #endif
     130             : 
     131             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     132             : 
     133             :         !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     134             : 
     135           1 :         call test%summarize()
     136             : 
     137           1 :     end subroutine setTest
     138             : 
     139             : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     140             : 
     141             : end module test_pm_mathCompare ! LCOV_EXCL_LINE

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