test_035 Subroutine

subroutine test_035(id, nfail)

Uses

  • proc~~test_035~~UsesGraph proc~test_035 test_035 module~forcolormap_info forcolormap_info proc~test_035->module~forcolormap_info module~forcolormap_cm_matplotlib forcolormap_cm_matplotlib module~forcolormap_info->module~forcolormap_cm_matplotlib module~forcolormap_cm_miscellaneous forcolormap_cm_miscellaneous module~forcolormap_info->module~forcolormap_cm_miscellaneous module~forcolormap_cm_scientific forcolormap_cm_scientific module~forcolormap_info->module~forcolormap_cm_scientific module~forcolormap_parameters forcolormap_parameters module~forcolormap_info->module~forcolormap_parameters module~forcolormap_cm_matplotlib->module~forcolormap_parameters module~forcolormap_cm_miscellaneous->module~forcolormap_parameters module~forcolormap_cm_scientific->module~forcolormap_parameters iso_fortran_env iso_fortran_env module~forcolormap_parameters->iso_fortran_env

get_name(i) should return a non-empty string for representative indices.

Arguments

Type IntentOptional Attributes Name
integer, intent(inout) :: id
integer, intent(inout) :: nfail

Calls

proc~~test_035~~CallsGraph proc~test_035 test_035 proc~get_name~2 Colormaps_info%get_name proc~test_035->proc~get_name~2 proc~get_ncolormaps Colormaps_info%get_ncolormaps proc~test_035->proc~get_ncolormaps proc~report_test report_test proc~test_035->proc~report_test

Called by

proc~~test_035~~CalledByGraph proc~test_035 test_035 program~check check program~check->proc~test_035

Source Code

   subroutine test_035(id, nfail)
      use forcolormap_info, only: cmap_info
      integer, intent(inout) :: id, nfail
      character(len=*), parameter :: name = "cmap_info: get_name non-empty for sample indices"
      logical :: ok
      integer :: n
      character(len=:), allocatable :: s

      n = cmap_info%get_ncolormaps()
      ok = .true.

      s = trim(cmap_info%get_name(1))
      ok = ok .and. (len_trim(s) > 0)

      s = trim(cmap_info%get_name((n+1)/2))
      ok = ok .and. (len_trim(s) > 0)

      s = trim(cmap_info%get_name(n))
      ok = ok .and. (len_trim(s) > 0)

      call report_test(name, ok, id, nfail)
   end subroutine test_035