test_t Derived Type

type, public, abstract :: test_t

Facilitate testing and test reporting


Inherited by

type~~test_t~~InheritedByGraph type~test_t test_t type~test_fixture_t test_fixture_t type~test_fixture_t->type~test_t test_ type~test_harness_t test_harness_t type~test_harness_t->type~test_fixture_t test_fixture_

Type-Bound Procedures

procedure, public :: report

  • interface

    private module subroutine report(test, passes, tests, skips)

    Print the test results and increment the tallies of passing tests, total tests, and skipped tests.

    Arguments

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

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, public :: run

  • interface

    private module function run(test, test_descriptions) result(test_results)

    Construct an array of test results from a set of tests filtered for descriptions and subjects with the '--contains' flag's value if the flag was included on the command line at program launch.

    Arguments

    Type IntentOptional Attributes Name
    class(test_t), intent(in) :: test
    type(test_description_t), intent(in) :: test_descriptions(:)

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

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

  • pure function subject_interface() result(specimen_description) Prototype

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

    Arguments

    None

    Return Value character(len=:), allocatable