Define an abstraction for describing test intentions and test functions
The result is a test_description_t object with the components defined by the dummy arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | description | |||
procedure(test_function_i), | intent(in), | pointer | :: | test_function |
The result is a test_description_t object with the components defined by the dummy arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_t), | intent(in) | :: | description | |||
procedure(test_function_i), | intent(in), | pointer | :: | test_function |
The result is .true. if the test description includes the value of substring
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(test_description_t), | intent(in) | :: | self | |||
character(len=*), | intent(in) | :: | substring |
The result is .true. if the test description includes the value of substring
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(test_description_t), | intent(in) | :: | self | |||
type(string_t), | intent(in) | :: | substring |
The result is .true. if the components of the lhs & rhs are equal
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(test_description_t), | intent(in) | :: | lhs | |||
class(test_description_t), | intent(in) | :: | rhs |
The result encapsulates the test description and test outcome
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(test_description_t), | intent(in) | :: | self |
Encapsulate test descriptions and test-functions
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(string_t), | private | :: | description_ | ||||
procedure(test_function_i), | private, | pointer, nopass | :: | test_function_ | => | null() |
private module function construct_from_character (description, test_function) | The result is a test_description_t object with the components defined by the dummy arguments |
private module function construct_from_string_t (description, test_function) | The result is a test_description_t object with the components defined by the dummy arguments |
generic, public :: contains_text => contains_string_t, contains_characters | |
generic, public :: operator(==) => equals | |
procedure, public :: run | |
procedure, private :: contains_characters | |
procedure, private :: contains_string_t | |
procedure, private :: equals |