Orchestrata Ultimate › Tests › Reference › scripts › test_spec_word_cloud
Tests reference — tests/scripts/test_spec_word_cloud.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_spec_word_cloud.py
source · 27 tests · 375 lines
Tests for scripts/spec_word_cloud.py — the MVP spec term-prominence tool.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_tokenize_counts_intact_identifier_with_boost_and_constituents |
75 | |
| function | test_tokenize_splits_snake_case_and_camel_case_with_caps_run |
84 | |
| function | test_tokenize_drops_stopwords_and_lowercases_plain_words |
94 | |
| function | test_tokenize_drops_short_tokens_but_keeps_short_identifier_like_acronyms |
105 | |
| function | test_is_identifier_token_and_split_identifier |
118 | |
| function | test_tfidf_rare_term_outranks_common_term_with_equal_raw_count |
129 | |
| function | test_tfidf_per_spec_and_global_shapes |
150 | |
| function | test_full_pipeline_json_output_shape |
163 | |
| function | test_discover_documents_extracts_spec_id_from_text |
190 | |
| function | test_discover_documents_falls_back_to_dirname_without_spec_id |
198 | |
| function | test_discover_documents_skips_dirs_without_spec_files |
209 | |
| function | test_build_svg_is_valid_xml_with_svg_root |
220 | |
| function | test_build_svg_top_term_has_largest_font_size |
229 | |
| function | test_build_svg_empty_terms_still_valid_xml |
247 | |
| function | test_build_svg_stops_placing_terms_once_vertical_space_runs_out |
253 | |
| function | test_font_size_uniform_weights_returns_midpoint |
265 | |
| function | test_term_matches_entity_name_exact |
273 | |
| function | test_term_matches_entity_name_case_insensitive |
277 | |
| function | test_term_matches_entity_name_snake_vs_camel |
281 | |
| function | test_term_matches_entity_name_no_match |
286 | |
| function | test_term_matches_entity_name_empty_strings |
290 | |
| function | test_term_matches_entity_name_plain_words_canonical_form |
295 | |
| function | test_split_identifier_handles_leading_underscore |
301 | |
| function | test_tokenize_identifier_with_stopword_constituent_is_not_double_counted |
307 | |
| function | test_main_writes_outputs_and_prints_top_terms |
319 | |
| function | test_apply_to_graph_runs_the_real_connect_enumerate_write_path |
346 | |
| function | test_main_apply_to_graph_cli_flag_end_to_end |
362 |