Text_Hover_Test C

Total Complexity 109
Dependencies 1
Dependents 0
Total lines 930
Lines of code 597
Logical lines of code 295
Comment lines 97
Methods 95
Properties 3

Methods 95

Method Rating Maintainability Complexity Lines of code
expected_text()
S
61 4 13
text_hovers()
S
68 3 7
test_hovers_search_strings_start_or_end_with_special_characters()
S
60 2 13
test_hovers_multibyte_text_once_via_setting()
S
60 2 13
test_hovers_term_split_across_multiple_lines()
S
60 2 13
test_no_hover_text_in_attribute()
S
64 2 12
test_disallowed_markup_is_stripped()
S
60 1 15
get_default_filters()
S
69 2 7
get_third_party_filters()
S
69 2 7
test_changing_priority_via_c2c_text_hover_filter_priority()
S
64 2 10
c2c_text_hover_filter_priority()
S
78 2 3
unhook_default_filters()
S
70 2 6
test_third_party_filters_are_part_of_c2c_text_hover_filters()
S
61 1 13
test_default_priority_for_filter_c2c_text_hover_filter_priority_is_based_on_when_setting()
S
63 1 11
setUpBeforeClass()
S
64 1 11
get_special_chars()
S
63 1 11
test_hovers_filter_added_via_more_filters()
S
64 1 9
test_does_not_hover_a_more_general_term_when_general_is_first()
S
74 1 4
test_hovers_once_via_setting()
S
69 1 6
test_does_not_hover_a_general_term_that_is_included_in_earlier_listed_term()
S
75 1 4
test_hovers_with_case_sensitivity_by_default()
S
70 1 6
test_does_not_replace_within_abbr_content()
S
76 1 4
test_hovers_once_via_trueish_setting_value()
S
69 1 6
test_hovers_once_via_filter()
S
69 1 6
test_does_not_replace_within_markup_attributes_but_does_between_tags()
S
72 1 5
test_hovers_multibyte_once_via_filter()
S
69 1 6
test_does_not_replace_within_markup_attributes()
S
76 1 4
test_hovers_with_case_insensitivity_via_setting()
S
68 1 7
test_hovers_with_case_insensitivity_via_filter()
S
68 1 7
test_hovers_term_added_via_filter()
S
70 1 6
test_hover_applies_to_third_party_filters()
S
71 1 5
test_hover_does_not_apply_to_comments_by_default()
S
75 1 4
test_enqueue_scripts_when_pretty_tooltips_enabled_by_filter()
S
65 1 9
test_options_page_description()
S
69 1 6
test_get_default_filters_both()
S
69 1 7
test_get_default_filters_third_party()
S
75 1 4
test_get_default_filters_invalid()
S
80 1 3
test_get_default_filters_core()
S
79 1 3
test_get_default_filters_empty_string()
S
79 1 3
test_get_default_filters_default()
S
79 1 3
test_enqueue_scripts_when_disabled()
S
67 1 8
test_hover_applies_to_comments_via_setting()
S
68 1 7
test_enqueue_scripts_when_pretty_tooltips_enabled_by_setting()
S
67 1 8
test_enqueue_scripts_default()
S
69 1 7
test_hover_applies_to_custom_third_party_filter_via_filter()
S
70 1 6
test_hover_applies_to_custom_filter_via_filter()
S
70 1 6
test_empty_hover_does_nothing()
S
79 1 3
test_hover_applies_to_comment_filters()
S
68 1 6
test_hover_applies_to_default_filters()
S
71 1 5
test_hover_applies_to_comments_via_filter()
S
68 1 7
test_hovers_text_via_filter_get_comment_text()
S
64 1 9
test_hovers_single_term_multiple_times()
S
74 1 4
test_does_not_hover_substrings()
S
73 1 5
add_custom_filter()
S
77 1 4
test_hooks_plugins_loaded()
S
78 1 3
test_instance_object_is_returned()
S
79 1 3
test_version()
S
80 1 3
test_plugin_framework_version()
S
80 1 3
test_plugin_framework_class_name()
S
80 1 3
test_class_exists()
S
80 1 3
capture_filter_value()
S
79 1 3
get_filter_names()
S
67 1 9
add_text_to_hover()
S
73 1 5
test_default_value_of_text_to_replace()
S
67 1 8
text_hover()
S
80 1 3
set_option()
S
67 1 8
get_3rd_party_filters()
S
66 1 10
get_core_filters()
S
79 1 3
get_ending_punctuation()
S
66 1 10
get_text_to_hover()
S
78 1 3
get_comment_filters()
S
72 1 6
tearDown()
S
66 1 9
test_setting_name()
S
80 1 3
test_default_value_of_text_hover_comments()
S
73 1 5
test_treats_single_angle_bracket_as_text()
S
69 1 7
test_hover_text_adjacent_to_punctuation()
S
72 1 6
test_permits_html_substitutions()
S
69 1 7
test_hovers_single_multibyte_term_multiple_times()
S
74 1 4
setUp()
S
74 1 5
test_hovers_text_with_html_encoded_038_ampersand()
S
78 1 3
test_hovers_text_with_html_encoded_amp_ampersand()
S
78 1 3
test_hover_text_adjacent_to_special_characters()
S
66 1 8
test_hover_text_when_followed_by_tag()
S
71 1 6
test_hover_text_at_end_of_line()
S
69 1 7
test_hover_text_is_attribute_escaped()
S
73 1 6
test_default_value_of_replace_once()
S
73 1 5
test_hovers_text_as_defined_in_setting()
S
79 1 3
test_hovers_text()
S
66 1 8
test_no_hover_when_hover_string_is_falsey()
S
76 1 4
test_no_text_change_when_no_hovers_defined()
S
70 1 6
test_default_value_of_more_filters()
S
73 1 5
test_default_value_of_when()
S
72 1 5
test_default_value_of_use_pretty_tooltips()
S
73 1 5
test_default_value_of_case_sensitive()
S
73 1 5
test_uninstall_deletes_option()
S
65 1 9