Orchestrata Ultimate › Tests › Reference › scripts › test_ast_gen_volk

Tests reference — tests/scripts/test_ast_gen_volk.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_ast_gen_volk.py

source · 21 tests · 466 lines

Tests for the AST tool's gen-volk scaffold generator.

Kind Name Line Description
function test_gen_volk_class_and_fields 52
function test_gen_volk_init_calls_super_with_no_args 65
function test_gen_volk_one_handler_stub_per_subject 82
function test_gen_volk_process_routes_each_subject_and_falls_back_to_none 110
function test_gen_volk_traces_stamped_with_spec_and_reqs 149
function test_gen_volk_traces_reqs_only_omits_spec 157
function test_gen_volk_no_traces_decorator_without_reqs 166
function test_gen_volk_hyphenated_and_spaced_subject_sanitized_to_identifier 183
function test_gen_volk_leading_digit_subject_gets_underscore_guard 196
function test_gen_volk_output_always_compiles 208
function test_gen_volk_no_subjects_still_has_process_fallback 219
function test_gen_volk_invalid_class_name_raises 231
function test_generate_volk_init_reexports_class 242
function test_cli_gen_volk_stdout_emits_code 269
function test_cli_gen_volk_dir_writes_both_files 285
function test_cli_gen_volk_dir_outside_package_warns 326
function test_cli_gen_volk_output_flag_writes_file 345
function test_gen_volk_default_import_prefix_output_is_byte_identical 369 Pin: omitting --import-prefix (the import_prefix default) emits
function test_gen_volk_import_prefix_override_replaces_all_three_imports 423
function test_cli_gen_volk_default_import_prefix_is_orchestrata_ultimate 435
function test_cli_gen_volk_import_prefix_flag_overrides_imports 449