Skip to content

flap_test_utils ​

Source: src/third_party/FLAP/src/tests/flap_test_utils.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
CASE_ENVcharacter(len=*)parameter

Interfaces ​

assert_equal ​

Module procedures: assert_equal_character, assert_equal_logical, assert_equal_I4P, assert_equal_R8P, assert_equal_I4P_1d, assert_equal_R8P_1d

Subroutines ​

assert ​

fortran
subroutine assert(condition, message)

Arguments

NameTypeIntentAttributesDescription
conditionlogicalin
messagecharacter(len=*)in

Call graph

assert_contains ​

fortran
subroutine assert_contains(text, substring, message)

Arguments

NameTypeIntentAttributesDescription
textcharacter(len=*)in
substringcharacter(len=*)in
messagecharacter(len=*)in

Call graph

assert_equal_character ​

fortran
subroutine assert_equal_character(actual, expected, message)

Arguments

NameTypeIntentAttributesDescription
actualcharacter(len=*)in
expectedcharacter(len=*)in
messagecharacter(len=*)in

Call graph

assert_equal_logical ​

fortran
subroutine assert_equal_logical(actual, expected, message)

Arguments

NameTypeIntentAttributesDescription
actuallogicalin
expectedlogicalin
messagecharacter(len=*)in

Call graph

assert_equal_I4P ​

fortran
subroutine assert_equal_I4P(actual, expected, message)

Arguments

NameTypeIntentAttributesDescription
actualinteger(kind=I4P)in
expectedinteger(kind=I4P)in
messagecharacter(len=*)in

Call graph

assert_equal_R8P ​

fortran
subroutine assert_equal_R8P(actual, expected, message, tol)

Arguments

NameTypeIntentAttributesDescription
actualreal(kind=R8P)in
expectedreal(kind=R8P)in
messagecharacter(len=*)in
tolreal(kind=R8P)inoptional

Call graph

assert_equal_I4P_1d ​

fortran
subroutine assert_equal_I4P_1d(actual, expected, message)

Arguments

NameTypeIntentAttributesDescription
actualinteger(kind=I4P)in
expectedinteger(kind=I4P)in
messagecharacter(len=*)in

Call graph

assert_equal_R8P_1d ​

fortran
subroutine assert_equal_R8P_1d(actual, expected, message, tol)

Arguments

NameTypeIntentAttributesDescription
actualreal(kind=R8P)in
expectedreal(kind=R8P)in
messagecharacter(len=*)in
tolreal(kind=R8P)inoptional

Call graph

capture_open ​

fortran
subroutine capture_open(lun)

Arguments

NameTypeIntentAttributesDescription
luninteger(kind=I4P)out

Call graph

capture_close ​

fortran
subroutine capture_close(lun)

Arguments

NameTypeIntentAttributesDescription
luninteger(kind=I4P)in

write_file ​

fortran
subroutine write_file(path, text)

Arguments

NameTypeIntentAttributesDescription
pathcharacter(len=*)in
textcharacter(len=*)in

Call graph

delete_file ​

fortran
subroutine delete_file(path)

Arguments

NameTypeIntentAttributesDescription
pathcharacter(len=*)in

Call graph

run_command ​

fortran
subroutine run_command(cmd, exitstat, out)

Arguments

NameTypeIntentAttributesDescription
cmdcharacter(len=*)in
exitstatinteger(kind=I4P)out
outcharacter(len=:)outallocatable

Call graph

reinvoke ​

fortran
subroutine reinvoke(case, exitstat, out, err, args, env, stdin)

Arguments

NameTypeIntentAttributesDescription
caseinteger(kind=I4P)in
exitstatinteger(kind=I4P)out
outcharacter(len=:)outallocatable
errcharacter(len=:)outallocatable
argscharacter(len=*)inoptional
envcharacter(len=*)inoptional
stdincharacter(len=*)inoptional

Call graph

fail ​

fortran
subroutine fail(message)

Arguments

NameTypeIntentAttributesDescription
messagecharacter(len=*)in

Call graph

Functions ​

read_back ​

Returns: character(len=:)

fortran
function read_back(lun) result(text)

Arguments

NameTypeIntentAttributesDescription
luninteger(kind=I4P)in

Call graph

read_file ​

Returns: character(len=:)

fortran
function read_file(path) result(text)

Arguments

NameTypeIntentAttributesDescription
pathcharacter(len=*)in

Call graph

scratch_file ​

Returns: character(len=:)

fortran
function scratch_file(name) result(path)

Arguments

NameTypeIntentAttributesDescription
namecharacter(len=*)in

Call graph

child_case ​

Returns: integer(kind=I4P)

fortran
function child_case() result(case)

Call graph

read_all ​

Returns: character(len=:)

fortran
function read_all(lun) result(text)

Arguments

NameTypeIntentAttributesDescription
luninteger(kind=I4P)in

Call graph

integer_to_string ​

Attributes: pure

Returns: character(len=:)

fortran
function integer_to_string(n) result(string)

Arguments

NameTypeIntentAttributesDescription
ninteger(kind=I4P)in

Call graph

real_to_string ​

Attributes: pure

Returns: character(len=:)

fortran
function real_to_string(x) result(string)

Arguments

NameTypeIntentAttributesDescription
xreal(kind=R8P)in

Call graph

logical_to_string ​

Attributes: pure

Returns: character(len=:)

fortran
function logical_to_string(l) result(string)

Arguments

NameTypeIntentAttributesDescription
llogicalin

Call graph

reals_match ​

Attributes: pure

Returns: logical

fortran
function reals_match(actual, expected, tol) result(match)

Arguments

NameTypeIntentAttributesDescription
actualreal(kind=R8P)in
expectedreal(kind=R8P)in
tolreal(kind=R8P)inoptional

Call graph