loki.tests.test_function
Functions
|
Test that prefixes for functions are correctly captured when the object is made complete. |
|
Test various prefixes that can occur in function/subroutine definitions |
|
Test various ways to define the return type of a function |
|
Test that subroutine suffixes are supported and correctly reproduced |
- test_function_return_type(tmp_path, frontend)
Test various ways to define the return type of a function
- test_function_prefix(frontend)
Test various prefixes that can occur in function/subroutine definitions
- test_function_suffix(frontend, tmp_path)
Test that subroutine suffixes are supported and correctly reproduced
- test_function_lazy_prefix(frontend)
Test that prefixes for functions are correctly captured when the object is made complete.
This test represents a case where the REGEX frontend fails to capture these attributes correctly.
The rationale for this test is that we don’t currently need these attributes in the incomplete REGEX-parsed IR and we accept that this information is incomplete initially. tmp_path, we make sure this information is captured correctly after completing the full frontend parse.