Define an abstraction for describing test intentions and test functions
The result is .true. an array of test_description_t objects whose description_ or contains the substring specified by command-line --contains flag if present, or all test_descriptions if the subject contains the same substring
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(test_description_t), | intent(in) | :: | test_descriptions(:) | |||
| character(len=*), | intent(in) | :: | subject |
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(diagnosis_function_i), | intent(in), | optional, | pointer | :: | diagnosis_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(diagnosis_function_i), | intent(in), | optional, | pointer | :: | diagnosis_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 | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | private, | allocatable | :: | description_ | |||
| procedure(diagnosis_function_i), | private, | pointer, nopass | :: | diagnosis_function_ | => | null() |
| private module function construct_from_characters (description, diagnosis_function) | The result is a test_description_t object with the components defined by the dummy arguments |
| private module function construct_from_string (description, diagnosis_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 |