loki.ir.tests.test_expr_visitors

Functions

test_expression_finder_retrieval_function(...)

Verify that expression finder visitors work as intended and remain functional if re-used

test_find_literals(frontend)

Test that FindLiterals finds all literals and FindRealLiterals all real/float literals.

test_find_variables(frontend, tmp_path)

Test that FindVariables finds all symbol uses.

test_substitute_expressions(frontend)

Test symbol replacement with Expression symbols.

test_substitute_string_expressions(frontend)

Test symbol replacement with symbol string mappping.

test_expression_finder_retrieval_function(frontend, tmp_path)

Verify that expression finder visitors work as intended and remain functional if re-used

test_find_variables(frontend, tmp_path)

Test that FindVariables finds all symbol uses.

test_find_literals(frontend)

Test that FindLiterals finds all literals and FindRealLiterals all real/float literals.

test_substitute_expressions(frontend)

Test symbol replacement with Expression symbols.

test_substitute_string_expressions(frontend)

Test symbol replacement with symbol string mappping.