loki.batch.tests.test_transformation

Functions

fixture_rename_transform()

test_transform_replace_selected_kind(...)

Test correct replacement of all selected_x_kind calls by iso_fortran_env constant.

test_transformation_apply(rename_transform, ...)

Apply a simple transformation that renames routines and modules, and test that this also works when the original source object was parsed using lazy construction.

test_transformation_apply_module(...)

Apply a simple transformation that renames routines and modules

test_transformation_apply_subroutine(...)

Apply a simple transformation that renames routines and modules

test_transformation_file_write(tmp_path)

Verify that files get written with correct filenames

test_transformation_pipeline_compose()

Test append / prepend functionalities of Pipeline objects.

test_transformation_pipeline_constructor()

Test the correct argument handling when instantiating a Pipeline from a partial definitions.

test_transformation_pipeline_simple()

Test the instantiation of a Pipeline from a partial definition.

test_transformation_post_apply_module(...)

Verify that post_apply is called for modules.

test_transformation_post_apply_subroutine(...)

Verify that post_apply is called for subroutines.

fixture_rename_transform()
test_transformation_apply(rename_transform, frontend, method, lazy, tmp_path)

Apply a simple transformation that renames routines and modules, and test that this also works when the original source object was parsed using lazy construction.

test_transformation_apply_subroutine(rename_transform, frontend, target, apply_method, lazy, tmp_path)

Apply a simple transformation that renames routines and modules

test_transformation_apply_module(rename_transform, frontend, apply_method, lazy, tmp_path)

Apply a simple transformation that renames routines and modules

test_transform_replace_selected_kind(tmp_path, frontend)

Test correct replacement of all selected_x_kind calls by iso_fortran_env constant.

test_transformation_post_apply_subroutine(tmp_path, frontend, post_apply_rescope_symbols)

Verify that post_apply is called for subroutines.

test_transformation_post_apply_module(tmp_path, frontend, post_apply_rescope_symbols)

Verify that post_apply is called for modules.

test_transformation_file_write(tmp_path)

Verify that files get written with correct filenames

test_transformation_pipeline_simple()

Test the instantiation of a Pipeline from a partial definition.

test_transformation_pipeline_constructor()

Test the correct argument handling when instantiating a Pipeline from a partial definitions.

test_transformation_pipeline_compose()

Test append / prepend functionalities of Pipeline objects.