Orchestrata Ultimate › Tests › Reference › generated_recovery › test_agents_volks_codedirector_scaffold_parser

Tests reference — tests/generated_recovery/test_agents_volks_codedirector_scaffold_parser.py

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

Prose pending.

tests/generated_recovery/test_agents_volks_codedirector_scaffold_parser.py

source · 126 tests · 1213 lines

Auto-generated tests for: agents.volks.codedirector.scaffold.parser

Covers: agents.volks.codedirector.scaffold.parser

Kind Name Line Description
class TestParseApiSpecBranches 37 Branch/exception tests for: agents.volks.codedirector.scaffold.parser.parse_api_spec
method TestParseApiSpecBranches.test_L96_when_m_true 60 Line 96: condition m is True.
method TestParseApiSpecBranches.test_L96_when_m_false 68 Line 96: condition m is False.
method TestParseApiSpecBranches.test_L97_when_current_class_and_current_module_true 76 Line 97: condition current_class and current_module is True.
method TestParseApiSpecBranches.test_L97_when_current_class_and_current_module_false 84 Line 97: condition current_class and current_module is False.
method TestParseApiSpecBranches.test_L99_when_current_module_true 92 Line 99: condition current_module is True.
method TestParseApiSpecBranches.test_L99_when_current_module_false 100 Line 99: condition current_module is False.
method TestParseApiSpecBranches.test_L108_when_re_match_module_s_stripped_true 108 Line 108: condition re.match('^Module:\s+', stripped) is True.
method TestParseApiSpecBranches.test_L108_when_re_match_module_s_stripped_false 116 Line 108: condition re.match('^Module:\s+', stripped) is False.
method TestParseApiSpecBranches.test_L109_when_current_class_and_current_module_true 124 Line 109: condition current_class and current_module is True.
method TestParseApiSpecBranches.test_L109_when_current_class_and_current_module_false 132 Line 109: condition current_class and current_module is False.
method TestParseApiSpecBranches.test_L111_when_current_module_true 140 Line 111: condition current_module is True.
method TestParseApiSpecBranches.test_L111_when_current_module_false 148 Line 111: condition current_module is False.
method TestParseApiSpecBranches.test_L117_when_not_current_module_true 156 Line 117: condition not current_module is True.
method TestParseApiSpecBranches.test_L117_when_not_current_module_false 164 Line 117: condition not current_module is False.
method TestParseApiSpecBranches.test_L121_when_stripped_startswith_imports_true 172 Line 121: condition stripped.startswith('Imports:') is True.
method TestParseApiSpecBranches.test_L121_when_stripped_startswith_imports_false 180 Line 121: condition stripped.startswith('Imports:') is False.
method TestParseApiSpecBranches.test_L125_when_rest_and_rest_startswith_from_import_true 188 Line 125: condition rest and rest.startswith(('from ', 'import ')) is True.
method TestParseApiSpecBranches.test_L125_when_rest_and_rest_startswith_from_import_false 196 Line 125: condition rest and rest.startswith(('from ', 'import ')) is False.
method TestParseApiSpecBranches.test_L129_when_in_imports_and_stripped_startswith_from__true 204 Line 129: condition in_imports and stripped.startswith(('from ', 'import ')) is True.
method TestParseApiSpecBranches.test_L129_when_in_imports_and_stripped_startswith_from__false 212 Line 129: condition in_imports and stripped.startswith(('from ', 'import ')) is False.
method TestParseApiSpecBranches.test_L132_when_in_imports_and_not_stripped_true 220 Line 132: condition in_imports and (not stripped) is True.
method TestParseApiSpecBranches.test_L132_when_in_imports_and_not_stripped_false 228 Line 132: condition in_imports and (not stripped) is False.
method TestParseApiSpecBranches.test_L137_when_class_match_and_not_stripped_startswith__true 236 Line 137: condition class_match and (not stripped.startswith('def ')) is True.
method TestParseApiSpecBranches.test_L137_when_class_match_and_not_stripped_startswith__false 244 Line 137: condition class_match and (not stripped.startswith('def ')) is False.
method TestParseApiSpecBranches.test_L139_when_stripped_in_fields_methods_functions_cla_true 252 Line 139: condition stripped in ('Fields:', 'Methods:', 'Functions:', 'Classes:', 'Content:') is True.
method TestParseApiSpecBranches.test_L139_when_stripped_in_fields_methods_functions_cla_false 261 Line 139: condition stripped in ('Fields:', 'Methods:', 'Functions:', 'Classes:', 'Content:') is False.
method TestParseApiSpecBranches.test_L146_when_stripped_fields_true 270 Line 146: condition stripped == 'Fields:' is True.
method TestParseApiSpecBranches.test_L146_when_stripped_fields_false 278 Line 146: condition stripped == 'Fields:' is False.
method TestParseApiSpecBranches.test_L148_when_stripped_in_methods_functions_true 286 Line 148: condition stripped in ('Methods:', 'Functions:') is True.
method TestParseApiSpecBranches.test_L148_when_stripped_in_methods_functions_false 295 Line 148: condition stripped in ('Methods:', 'Functions:') is False.
method TestParseApiSpecBranches.test_L152_when_current_class_and_current_module_true 304 Line 152: condition current_class and current_module is True.
method TestParseApiSpecBranches.test_L152_when_current_class_and_current_module_false 312 Line 152: condition current_class and current_module is False.
method TestParseApiSpecBranches.test_L165_when_stripped_classes_true 320 Line 165: condition stripped == 'Classes:' is True.
method TestParseApiSpecBranches.test_L165_when_stripped_classes_false 328 Line 165: condition stripped == 'Classes:' is False.
method TestParseApiSpecBranches.test_L173_when_field_match_and_current_class_and_not_in_true 336 Line 173: condition field_match and current_class and (not in_methods) is True.
method TestParseApiSpecBranches.test_L173_when_field_match_and_current_class_and_not_in_false 344 Line 173: condition field_match and current_class and (not in_methods) is False.
method TestParseApiSpecBranches.test_L178_when_fname_not_in_enum_raises_true 352 Line 178: condition fname not in ('Enum', 'Raises') is True.
method TestParseApiSpecBranches.test_L178_when_fname_not_in_enum_raises_false 361 Line 178: condition fname not in ('Enum', 'Raises') is False.
method TestParseApiSpecBranches.test_L183_when_stripped_startswith_enum_values_and_curr_true 370 Line 183: condition stripped.startswith('Enum values:') and current_class is True.
method TestParseApiSpecBranches.test_L183_when_stripped_startswith_enum_values_and_curr_false 378 Line 183: condition stripped.startswith('Enum values:') and current_class is False.
method TestParseApiSpecBranches.test_L187_when_val_true 386 Line 187: condition val is True.
method TestParseApiSpecBranches.test_L187_when_val_false 394 Line 187: condition val is False.
method TestParseApiSpecBranches.test_L197_when_not_method_match_true 402 Line 197: condition not method_match is True.
method TestParseApiSpecBranches.test_L197_when_not_method_match_false 410 Line 197: condition not method_match is False.
method TestParseApiSpecBranches.test_L204_when_method_match_true 418 Line 204: condition method_match is True.
method TestParseApiSpecBranches.test_L204_when_method_match_false 426 Line 204: condition method_match is False.
method TestParseApiSpecBranches.test_L220_when_current_class_true 434 Line 220: condition current_class is True.
method TestParseApiSpecBranches.test_L220_when_current_class_false 442 Line 220: condition current_class is False.
method TestParseApiSpecBranches.test_L227_when_stripped_classmethod_and_current_class_true 450 Line 227: condition stripped == '@classmethod' and current_class is True.
method TestParseApiSpecBranches.test_L227_when_stripped_classmethod_and_current_class_false 458 Line 227: condition stripped == '@classmethod' and current_class is False.
method TestParseApiSpecBranches.test_L230_when_stripped_property_and_current_class_true 466 Line 230: condition stripped == '@property' and current_class is True.
method TestParseApiSpecBranches.test_L230_when_stripped_property_and_current_class_false 474 Line 230: condition stripped == '@property' and current_class is False.
method TestParseApiSpecBranches.test_L235_when_doc_match_true 482 Line 235: condition doc_match is True.
method TestParseApiSpecBranches.test_L235_when_doc_match_false 490 Line 235: condition doc_match is False.
method TestParseApiSpecBranches.test_L238_when_current_class_and_current_class_methods_true 498 Line 238: condition current_class and current_class.methods is True.
method TestParseApiSpecBranches.test_L238_when_current_class_and_current_class_methods_false 507 Line 238: condition current_class and current_class.methods is False.
method TestParseApiSpecBranches.test_L240_when_current_class_true 516 Line 240: condition current_class is True.
method TestParseApiSpecBranches.test_L240_when_current_class_false 524 Line 240: condition current_class is False.
method TestParseApiSpecBranches.test_L246_when_raises_match_and_current_class_and_curre_true 532 Line 246: condition raises_match and current_class and current_class.methods is True.
method TestParseApiSpecBranches.test_L246_when_raises_match_and_current_class_and_curre_false 541 Line 246: condition raises_match and current_class and current_class.methods is False.
method TestParseApiSpecBranches.test_L251_when_stripped_startswith_raises_and_current_m_true 550 Line 251: condition stripped.startswith('Raises:') and current_module and current_module.functions is True.
method TestParseApiSpecBranches.test_L251_when_stripped_startswith_raises_and_current_m_false 559 Line 251: condition stripped.startswith('Raises:') and current_module and current_module.functions is False.
method TestParseApiSpecBranches.test_L257_when_exc_match_true 568 Line 257: condition exc_match is True.
method TestParseApiSpecBranches.test_L257_when_exc_match_false 576 Line 257: condition exc_match is False.
method TestParseApiSpecBranches.test_L262_when_current_class_and_current_module_true 584 Line 262: condition current_class and current_module is True.
method TestParseApiSpecBranches.test_L262_when_current_class_and_current_module_false 592 Line 262: condition current_class and current_module is False.
method TestParseApiSpecBranches.test_L264_when_current_module_true 600 Line 264: condition current_module is True.
method TestParseApiSpecBranches.test_L264_when_current_module_false 608 Line 264: condition current_module is False.
class TestParseCodeBlocksBranches 617 Branch/exception tests for: agents.volks.codedirector.scaffold.parser.parse_code_blocks
method TestParseCodeBlocksBranches.test_L304_when_dir_match_and_stripped_startswith_true 638 Line 304: condition dir_match and stripped.startswith('**') is True.
method TestParseCodeBlocksBranches.test_L304_when_dir_match_and_stripped_startswith_false 646 Line 304: condition dir_match and stripped.startswith('**') is False.
method TestParseCodeBlocksBranches.test_L311_when_std_mod_match_true 654 Line 311: condition std_mod_match is True.
method TestParseCodeBlocksBranches.test_L311_when_std_mod_match_false 662 Line 311: condition std_mod_match is False.
method TestParseCodeBlocksBranches.test_L317_when_re_match_module_s_lines_j_strip_true 670 Line 317: condition re.match('^Module:\s+', lines[j].strip()) is True.
method TestParseCodeBlocksBranches.test_L317_when_re_match_module_s_lines_j_strip_false 678 Line 317: condition re.match('^Module:\s+', lines[j].strip()) is False.
method TestParseCodeBlocksBranches.test_L320_when_j_len_lines_and_lines_j_strip_startswith_true 686 Line 320: condition j < len(lines) and lines[j].strip().startswith('```') is True.
method TestParseCodeBlocksBranches.test_L320_when_j_len_lines_and_lines_j_strip_startswith_false 694 Line 320: condition j < len(lines) and lines[j].strip().startswith('```') is False.
method TestParseCodeBlocksBranches.test_L326_when_code_lines_true 702 Line 326: condition code_lines is True.
method TestParseCodeBlocksBranches.test_L326_when_code_lines_false 710 Line 326: condition code_lines is False.
method TestParseCodeBlocksBranches.test_L336_when_path_match_true 718 Line 336: condition path_match is True.
method TestParseCodeBlocksBranches.test_L336_when_path_match_false 726 Line 336: condition path_match is False.
method TestParseCodeBlocksBranches.test_L341_when_i_len_lines_and_in_lines_i_true 734 Line 341: condition i < len(lines) and '```' in lines[i] is True.
method TestParseCodeBlocksBranches.test_L341_when_i_len_lines_and_in_lines_i_false 743 Line 341: condition i < len(lines) and '```' in lines[i] is False.
method TestParseCodeBlocksBranches.test_L347_when_code_lines_true 752 Line 347: condition code_lines is True.
method TestParseCodeBlocksBranches.test_L347_when_code_lines_false 760 Line 347: condition code_lines is False.
method TestParseCodeBlocksBranches.test_L354_when_mod_match_true 768 Line 354: condition mod_match is True.
method TestParseCodeBlocksBranches.test_L354_when_mod_match_false 776 Line 354: condition mod_match is False.
method TestParseCodeBlocksBranches.test_L357_when_dotted_endswith_py_true 784 Line 357: condition dotted.endswith('.py') is True.
method TestParseCodeBlocksBranches.test_L357_when_dotted_endswith_py_false 792 Line 357: condition dotted.endswith('.py') is False.
method TestParseCodeBlocksBranches.test_L360_when_dotted_startswith_src_true 800 Line 360: condition dotted.startswith('src.') is True.
method TestParseCodeBlocksBranches.test_L360_when_dotted_startswith_src_false 808 Line 360: condition dotted.startswith('src.') is False.
method TestParseCodeBlocksBranches.test_L362_when_dotted_startswith_src_true 816 Line 362: condition dotted.startswith('src/') is True.
method TestParseCodeBlocksBranches.test_L362_when_dotted_startswith_src_false 824 Line 362: condition dotted.startswith('src/') is False.
method TestParseCodeBlocksBranches.test_L372_when_i_len_lines_and_in_lines_i_true 832 Line 372: condition i < len(lines) and '```' in lines[i] is True.
method TestParseCodeBlocksBranches.test_L372_when_i_len_lines_and_in_lines_i_false 841 Line 372: condition i < len(lines) and '```' in lines[i] is False.
method TestParseCodeBlocksBranches.test_L378_when_code_lines_true 850 Line 378: condition code_lines is True.
method TestParseCodeBlocksBranches.test_L378_when_code_lines_false 858 Line 378: condition code_lines is False.
method TestParseCodeBlocksBranches.test_L385_when_file_match_true 866 Line 385: condition file_match is True.
method TestParseCodeBlocksBranches.test_L385_when_file_match_false 874 Line 385: condition file_match is False.
method TestParseCodeBlocksBranches.test_L393_when_i_len_lines_and_in_lines_i_true 882 Line 393: condition i < len(lines) and '```' in lines[i] is True.
method TestParseCodeBlocksBranches.test_L393_when_i_len_lines_and_in_lines_i_false 891 Line 393: condition i < len(lines) and '```' in lines[i] is False.
method TestParseCodeBlocksBranches.test_L399_when_code_lines_true 900 Line 399: condition code_lines is True.
method TestParseCodeBlocksBranches.test_L399_when_code_lines_false 908 Line 399: condition code_lines is False.
method TestParseCodeBlocksBranches.test_L407_when_not_code_blocks_true 916 Line 407: condition not code_blocks is True.
method TestParseCodeBlocksBranches.test_L407_when_not_code_blocks_false 924 Line 407: condition not code_blocks is False.
class TestParseFileTreeBranches 933 Branch/exception tests for: agents.volks.codedirector.scaffold.parser.parse_file_tree
method TestParseFileTreeBranches.test_L40_when_not_stripped_or_stripped_startswith_true 956 Line 40: condition not stripped or stripped.startswith('**') is True.
method TestParseFileTreeBranches.test_L40_when_not_stripped_or_stripped_startswith_false 964 Line 40: condition not stripped or stripped.startswith('**') is False.
method TestParseFileTreeBranches.test_L50_when_stripped_endswith_true 972 Line 50: condition stripped.endswith('/') is True.
method TestParseFileTreeBranches.test_L50_when_stripped_endswith_false 980 Line 50: condition stripped.endswith('/') is False.
class TestBuildProjectSpecBranches 989 Branch/exception tests for: agents.volks.codedirector.scaffold.parser.build_project_spec
method TestBuildProjectSpecBranches.test_L591_when_ver_match_true 1013 Line 591: condition ver_match is True.
method TestBuildProjectSpecBranches.test_L591_when_ver_match_false 1023 Line 591: condition ver_match is False.
class TestExtractPackageNameBranches 1034 Branch/exception tests for: agents.volks.codedirector.scaffold.parser.extract_package_name
method TestExtractPackageNameBranches.test_L548_when_path_startswith_src_and_path_endswith_in_true 1057 Line 548: condition path.startswith('src/') and path.endswith('/__init__.py') is True.
method TestExtractPackageNameBranches.test_L548_when_path_startswith_src_and_path_endswith_in_false 1065 Line 548: condition path.startswith('src/') and path.endswith('/__init__.py') is False.
method TestExtractPackageNameBranches.test_L551_when_len_parts_3_true 1073 Line 551: condition len(parts) >= 3 is True.
method TestExtractPackageNameBranches.test_L551_when_len_parts_3_false 1081 Line 551: condition len(parts) >= 3 is False.
method TestExtractPackageNameBranches.test_L555_when_src_in_path_and_init_py_in_path_true 1089 Line 555: condition 'src/' in path and '__init__.py' in path is True.
method TestExtractPackageNameBranches.test_L555_when_src_in_path_and_init_py_in_path_false 1099 Line 555: condition 'src/' in path and '__init__.py' in path is False.
method TestExtractPackageNameBranches.test_L558_when_pkg_init_py_true 1109 Line 558: condition pkg != '__init__.py' is True.
method TestExtractPackageNameBranches.test_L558_when_pkg_init_py_false 1117 Line 558: condition pkg != '__init__.py' is False.
class TestParseDependenciesBranches 1126 Branch/exception tests for: agents.volks.codedirector.scaffold.parser.parse_dependencies
method TestParseDependenciesBranches.test_L523_when_stripped_dependencies_true 1151 Line 523: condition stripped == 'dependencies = [' is True.
method TestParseDependenciesBranches.test_L523_when_stripped_dependencies_false 1159 Line 523: condition stripped == 'dependencies = [' is False.
method TestParseDependenciesBranches.test_L526_when_in_deps_and_stripped_true 1167 Line 526: condition in_deps and stripped == ']' is True.
method TestParseDependenciesBranches.test_L526_when_in_deps_and_stripped_false 1175 Line 526: condition in_deps and stripped == ']' is False.
method TestParseDependenciesBranches.test_L529_when_in_deps_true 1183 Line 529: condition in_deps is True.
method TestParseDependenciesBranches.test_L529_when_in_deps_false 1191 Line 529: condition in_deps is False.
method TestParseDependenciesBranches.test_L531_when_dep_true 1199 Line 531: condition dep is True.
method TestParseDependenciesBranches.test_L531_when_dep_false 1207 Line 531: condition dep is False.