sourcery_test_result_m Module

Define an abstraction for describing test intentions and results


Uses

  • module~~sourcery_test_result_m~~UsesGraph module~sourcery_test_result_m sourcery_test_result_m module~sourcery_string_m sourcery_string_m module~sourcery_test_result_m->module~sourcery_string_m assert_m assert_m module~sourcery_string_m->assert_m

Used by

  • module~~sourcery_test_result_m~~UsedByGraph module~sourcery_test_result_m sourcery_test_result_m module~sourcery_m sourcery_m module~sourcery_m->module~sourcery_test_result_m module~sourcery_test_description_m sourcery_test_description_m module~sourcery_m->module~sourcery_test_description_m module~sourcery_test_m sourcery_test_m module~sourcery_m->module~sourcery_test_m module~sourcery_vector_test_description_m sourcery_vector_test_description_m module~sourcery_m->module~sourcery_vector_test_description_m module~sourcery_test_description_m->module~sourcery_test_result_m module~sourcery_test_m->module~sourcery_test_result_m module~sourcery_test_result_s sourcery_test_result_s module~sourcery_test_result_s->module~sourcery_test_result_m module~sourcery_vector_test_description_m->module~sourcery_test_result_m module~sourcery_string_s sourcery_string_s module~sourcery_string_s->module~sourcery_m module~sourcery_test_description_s sourcery_test_description_s module~sourcery_test_description_s->module~sourcery_test_description_m module~sourcery_test_s sourcery_test_s module~sourcery_test_s->module~sourcery_test_m

Interfaces

public interface test_result_t

  • private elemental module function construct_from_character(description, passed) result(test_result)

    The result is a test_result_t object with the components defined by the dummy arguments

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: description
    logical, intent(in) :: passed

    Return Value type(test_result_t)

  • private elemental module function construct_from_string(description, passed) result(test_result)

    The result is a test_result_t object with the components defined by the dummy arguments

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(in) :: description
    logical, intent(in) :: passed

    Return Value type(test_result_t)

interface

  • private pure module function characterize(self) result(characterization)

    The result is a character description of the test and its outcome

    Arguments

    Type IntentOptional Attributes Name
    class(test_result_t), intent(in) :: self

    Return Value character(len=:), allocatable

interface

  • private elemental module function description_contains(self, substring) result(substring_found)

    The result is true if and only if the test description contains the substring

    Arguments

    Type IntentOptional Attributes Name
    class(test_result_t), intent(in) :: self
    type(string_t), intent(in) :: substring

    Return Value logical

interface

  • private impure elemental module function passed(self) result(test_passed)

    The result is true if and only if the test passed on all images

    Arguments

    Type IntentOptional Attributes Name
    class(test_result_t), intent(in) :: self

    Return Value logical


Derived Types

type, public ::  test_result_t

Encapsulate test descriptions and outcomes

Components

Type Visibility Attributes Name Initial
type(string_t), public :: description_
logical, public :: passed_

Constructor

private elemental, module function construct_from_character (description, passed)

The result is a test_result_t object with the components defined by the dummy arguments

private elemental, module function construct_from_string (description, passed)

The result is a test_result_t object with the components defined by the dummy arguments

Type-Bound Procedures

procedure, public :: characterize
procedure, public :: description_contains
procedure, public :: passed