# loki.backend.tests.test_fgen

Functions

`test_character_list_linebreak`(frontend, tmp_path) |
`test_fgen_data_stmt`(frontend) | Test correct formatting of data declaration statements
`test_fgen_external_procedure`(frontend, ...) |
`test_fgen_literal_list_linebreak`(frontend, ...) | Test correct handling of linebreaks for LiteralList expression nodes
`test_fgen_procedure_pointer`(frontend, ...) | Test correct code generation for procedure pointers
`test_fgen_protected_attribute`(frontend, tmp_path) | Make sure the PROTECTED attribute on declarations is preserved (#506).
`test_fgen_save_attribute`(frontend, tmp_path) | Make sure the SAVE attribute on declarations is preserved (#164)
`test_fgen_select_type`(frontend, tmp_path) |
`test_multiline_inline_conditional`(frontend) | Test correct formatting of an inline `Conditional` that contains a multi-line `CallStatement`.
`test_multiline_inline_conditional_long`(frontend) | Test correct formatting of an inline `Conditional` that that creates a particularly long line.

test_fgen_literal_list_linebreak(frontend, tmp_path)

  Test correct handling of linebreaks for LiteralList expression nodes

test_character_list_linebreak(frontend, tmp_path)

test_fgen_data_stmt(frontend)

  Test correct formatting of data declaration statements

test_multiline_inline_conditional(frontend)

  Test correct formatting of an inline `Conditional` that contains a multi-line `CallStatement`.

test_multiline_inline_conditional_long(frontend)

  Test correct formatting of an inline `Conditional` that that creates a particularly long line.

test_fgen_save_attribute(frontend, tmp_path)

  Make sure the SAVE attribute on declarations is preserved (#164)

test_fgen_protected_attribute(frontend, tmp_path)

  Make sure the PROTECTED attribute on declarations is preserved (#506).

  This test mimics the test_fgen_save_attribute test.

test_fgen_external_procedure(frontend, external_decl, body)

test_fgen_procedure_pointer(frontend, use_module, tmp_path)

  Test correct code generation for procedure pointers

  This was reported in #393

test_fgen_select_type(frontend, tmp_path)