vector_test_description_t Derived Type

type, public :: vector_test_description_t

Encapsulate test descriptions and vector-valued test functions


Inherits

type~~vector_test_description_t~~InheritsGraph type~vector_test_description_t vector_test_description_t type~string_t string_t type~vector_test_description_t->type~string_t description_vector_ type~vector_function_strategy_t vector_function_strategy_t type~vector_test_description_t->type~vector_function_strategy_t vector_function_strategy_ characterizable_t characterizable_t type~string_t->characterizable_t

Components

Type Visibility Attributes Name Initial
type(string_t), private, allocatable :: description_vector_(:)
class(vector_function_strategy_t), private, allocatable :: vector_function_strategy_

Constructor

public interface vector_test_description_t

  • private module function construct(description_vector, vector_function_strategy) result(vector_test_description)

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

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(in) :: description_vector(:)
    class(vector_function_strategy_t), intent(in) :: vector_function_strategy

    Return Value type(vector_test_description_t)


Type-Bound Procedures

procedure, public :: contains_text

  • interface

    private module function contains_text(self, substring) result(match_vector)

    The result is .true. if the test description includes the value of substring

    Arguments

    Type IntentOptional Attributes Name
    class(vector_test_description_t), intent(in) :: self
    character(len=*), intent(in) :: substring

    Return Value logical, allocatable, (:)

procedure, public :: run

  • interface

    private impure module function run(self) result(test_results)

    The result encapsulates the test description and test outcome

    Arguments

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

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