test_t Derived Type

type, public, abstract :: test_t

Facilitate testing and test reporting


Type-Bound Procedures

procedure, public :: report

  • interface

    private module subroutine report(test, passes, tests)

    Print the test results and increment the tallies of passing tests and total tests

    Arguments

    Type IntentOptional Attributes Name
    class(test_t), intent(in) :: test
    integer, intent(inout) :: passes
    integer, intent(inout) :: tests

procedure(results_interface), public, deferred, nopass :: results

  • function results_interface() result(test_results) Prototype

    The result is an array of test results for subsequent reporting in the "report" type-bound procedure

    Arguments

    None

    Return Value type(test_result_t), allocatable, (:)

procedure(subject_interface), public, deferred, nopass :: subject

  • pure function subject_interface() result(specimen) Prototype

    The result is the name of the test specimen (the subject of testing)

    Arguments

    None

    Return Value character(len=:), allocatable