Define an abstraction for describing test intentions and results
The result is a test_result_t object with the components defined by the dummy arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | description | |||
| logical, | intent(in) | :: | passed |
The result is a test_result_t object with the components defined by the dummy arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_t), | intent(in) | :: | description | |||
| logical, | intent(in) | :: | passed |
The result is a character description of the test and its outcome
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(test_result_t), | intent(in) | :: | self |
The result is true if and only if the test description contains the substring
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(test_result_t), | intent(in) | :: | self | |||
| type(string_t), | intent(in) | :: | substring |
The result is true if and only if the test passed on all images
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(test_result_t), | intent(in) | :: | self |
Encapsulate test descriptions and outcomes
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(string_t), | public | :: | description_ | ||||
| logical, | public | :: | passed_ |
| 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 |
| procedure, public :: characterize | |
| procedure, public :: description_contains | |
| procedure, public :: passed |