loki.tests.test_modules
Functions
|
Test that loki-specific dimension annotations are detected and used to set shapes. |
|
Test the use of InlineCall symbols linked to an external function definition. |
|
Test the use of InlineCall symbols linked to an module function. |
|
Test correct parsing of access-spec attributes |
|
Test correct parsing without access-spec statements |
|
Test correct parsing of access-spec statements with default private |
|
Test correct parsing of access-spec statements with default public |
|
|
|
Test that string-equivalence works on relevant components. |
Test that semantic, but no string-equivalence evaluates as not eqal |
|
|
Test that CONTAINS keyword is automatically inserted into the contains section of a |
|
Test the rescoping of variables in clone with nested scopes. |
|
Test that module-level enrichment is propagated correctly |
|
|
Test that externally provided type information is correctly attached to a Module subroutine when supplied via the typedefs parameter in the constructor. |
|
|
Test that externally provided type information is correctly attached to a Module type and used in a contained subroutine when supplied via the typedefs parameter in the constructor. |
|
Test the creation of Module objects from raw source strings. |
|
Test that ensure that nested internal derived type definitions are detected and connected correctly. |
Test use statement with rename lists when definitions are not available |
|
Test use statement with rename lists |
|
|
Test the rescoping of variables in clone. |
|
Test the rescoping of variables. |
|
Test the |
|
Test module natures attributes in |
|
Test local variable addition and removal. |
Test that loki-specific dimension annotations are detected and propagated in nested type definitions. |
- test_module_from_source(frontend, tmp_path)
Test the creation of Module objects from raw source strings.
- test_module_external_typedefs_subroutine(frontend, tmp_path)
Test that externally provided type information is correctly attached to a Module subroutine when supplied via the typedefs parameter in the constructor.
- test_module_external_typedefs_type(frontend, tmp_path)
Test that externally provided type information is correctly attached to a Module type and used in a contained subroutine when supplied via the typedefs parameter in the constructor.
- test_module_nested_types(frontend, tmp_path)
Test that ensure that nested internal derived type definitions are detected and connected correctly.
- test_dimension_pragmas(frontend, tmp_path)
Test that loki-specific dimension annotations are detected and used to set shapes.
- test_nested_types_dimension_pragmas(frontend, tmp_path)
Test that loki-specific dimension annotations are detected and propagated in nested type definitions.
- test_internal_function_call(frontend, tmp_path)
Test the use of InlineCall symbols linked to an module function.
- test_external_function_call(frontend, tmp_path)
Test the use of InlineCall symbols linked to an external function definition.
- test_module_variables_add_remove(frontend, tmp_path)
Test local variable addition and removal.
- test_module_rescope_symbols(frontend, tmp_path)
Test the rescoping of variables.
- test_module_rescope_clone(frontend, tmp_path)
Test the rescoping of variables in clone.
- test_module_deep_clone(frontend, tmp_path)
Test the rescoping of variables in clone with nested scopes.
- test_module_access_spec_none(frontend, tmp_path)
Test correct parsing without access-spec statements
- test_module_access_spec_private(frontend, tmp_path)
Test correct parsing of access-spec statements with default private
- test_module_access_spec_public(frontend, tmp_path)
Test correct parsing of access-spec statements with default public
- test_module_access_attr(frontend, tmp_path)
Test correct parsing of access-spec attributes
- test_module_rename_imports_with_definitions(frontend, tmp_path)
Test use statement with rename lists
- test_module_rename_imports_no_definitions(frontend, tmp_path)
Test use statement with rename lists when definitions are not available
- test_module_use_module_nature(frontend, tmp_path)
Test module natures attributes in
USE
statements
- test_module_spec_parts(frontend, spec, part_lengths, tmp_path)
Test the
spec_parts
property ofModule
- test_module_comparison(frontend, tmp_path)
Test that string-equivalence works on relevant components.
- test_module_comparison_case_sensitive(frontend, tmp_path)
Test that semantic, but no string-equivalence evaluates as not eqal
- test_module_contains_auto_insert(frontend, tmp_path)
Test that CONTAINS keyword is automatically inserted into the contains section of a
ProgramUnit
object.
- test_module_missing_imported_symbol(frontend, only_list, complete_tree, tmp_path)
- test_module_all_imports(frontend, tmp_path)
- test_module_enrichment_within_file(frontend, tmp_path)
- test_module_enrichment_typedefs(frontend, tmp_path)
Test that module-level enrichment is propagated correctly