# loki.batch.tests.test_batch

Functions

`discover_proj_typebound_item_factory`(...) |
`fixture_comp1_expected_dependencies`() |
`fixture_default_config`() | Default SchedulerConfig configuration with basic options.
`fixture_expected_dependencies`(...) |
`fixture_file_dependencies`() |
`fixture_here`() |
`fixture_mod_proc_expected_dependencies`() |
`fixture_no_expected_dependencies`() |
`fixture_testdir`(here) |
`get_item`(cls, path, name, parser_classes[, ...]) |
`test_batch_typebound_item`(testdir, ...) | Test the basic regex frontend nodes in `Item` objects for fast dependency detection for type-bound procedures.
`test_batch_typebound_item_targets`(default_config) |
`test_batch_typebound_nested_item`(testdir, ...) | Test the basic regex frontend nodes in `Item` objects for fast dependency detection for type-bound procedures for calls to nested derived type bindings
`test_file_item1`(testdir, default_config) |
`test_file_item2`(testdir) |
`test_file_item3`(testdir) |
`test_interface_item_in_module`(testdir) |
`test_interface_item_in_subroutine`(testdir) |
`test_item_graph`(testdir, ...) | Build a `nx.Digraph` from a dummy call hierarchy to check the incremental parsing and discovery behaves as expected.
`test_module_item1`(testdir) |
`test_module_item2`(testdir) |
`test_module_item3`(testdir) |
`test_module_item4`(testdir) |
`test_procedure_binding_item1`(testdir) |
`test_procedure_binding_item2`(testdir, ...) |
`test_procedure_binding_item3`(testdir) |
`test_procedure_binding_with_config`(testdir, ...) |
`test_procedure_item1`(testdir) |
`test_procedure_item2`(testdir) |
`test_procedure_item3`(testdir) |
`test_procedure_item4`(testdir) |
`test_procedure_item_external_item`(tmp_path, ...) | Test that dependencies to external module procedures are marked as external item
`test_procedure_item_from_item1`(testdir, ...) |
`test_procedure_item_from_item2`(testdir, ...) |
`test_procedure_item_with_config`(testdir, ...) |
`test_procedure_item_with_config2`(testdir, ...) |
`test_sgraph_disable`(testdir, default_config, ...) |
`test_sgraph_filegraph`(testdir, ...) |
`test_sgraph_from_seed`(tmp_path, testdir, ...) |
`test_sgraph_routines`(testdir, ...) |
`test_typedef_item`(testdir) |

Classes

`VisGraphWrapper`(path) | Testing utility to parse the generated callgraph visualisation.

fixture_here()

fixture_testdir(here)

fixture_default_config()

  Default SchedulerConfig configuration with basic options.

fixture_comp1_expected_dependencies()

fixture_mod_proc_expected_dependencies()

fixture_expected_dependencies(comp1_expected_dependencies, mod_proc_expected_dependencies)

fixture_no_expected_dependencies()

fixture_file_dependencies()

class VisGraphWrapper(path)

  Bases: `object`

  Testing utility to parse the generated callgraph visualisation.

  property nodes
  property edges

get_item(cls, path, name, parser_classes, scheduler_config=None)

test_file_item1(testdir, default_config)

test_file_item2(testdir)

test_file_item3(testdir)

test_module_item1(testdir)

test_module_item2(testdir)

test_module_item3(testdir)

test_module_item4(testdir)

test_procedure_item1(testdir)

test_procedure_item2(testdir)

test_procedure_item3(testdir)

test_procedure_item4(testdir)

test_procedure_item_with_config(testdir, config, expected_dependencies, expected_targets)

test_procedure_item_with_config2(testdir, disable)

test_procedure_item_external_item(tmp_path, enable_imports, default_config)

  Test that dependencies to external module procedures are marked as external item

test_procedure_item_from_item1(testdir, default_config)

test_procedure_item_from_item2(testdir, default_config)

test_typedef_item(testdir)

test_interface_item_in_module(testdir)

test_interface_item_in_subroutine(testdir)

test_procedure_binding_item1(testdir)

test_procedure_binding_item2(testdir, default_config)

test_procedure_binding_item3(testdir)

test_procedure_binding_with_config(testdir, config, expected_dependencies)

test_item_graph(testdir, comp1_expected_dependencies)

  Build a `nx.Digraph` from a dummy call hierarchy to check the incremental parsing and discovery behaves as expected.

test_sgraph_from_seed(tmp_path, testdir, default_config, seed, dependencies_fixture, request)

test_sgraph_disable(testdir, default_config, expected_dependencies, seed, disable, active_nodes)

test_sgraph_routines(testdir, default_config, expected_dependencies, seed, routines, active_nodes)

test_sgraph_filegraph(testdir, default_config, file_dependencies)

discover_proj_typebound_item_factory(testdir, scheduler_config)

test_batch_typebound_item(testdir, default_config, name, config_override, item_type, ir_type, attrs_to_check, dependency_items)

  Test the basic regex frontend nodes in `Item` objects for fast dependency detection for type-bound procedures.

test_batch_typebound_nested_item(testdir, default_config)

  Test the basic regex frontend nodes in `Item` objects for fast dependency detection for type-bound procedures for calls to nested derived type bindings

test_batch_typebound_item_targets(default_config)