Coverage report: 100%

Files Functions Classes

coverage.py v7.10.6, created at 2025-09-04 15:55 +0100

File function statements missing excluded branches partial coverage
src/certus/__init__.py (no function) 3 0 0 0 0 100%
src/certus/interface.py from_google 11 0 0 6 0 100%
src/certus/interface.py (no function) 4 0 0 0 0 100%
src/certus/nodes/__init__.py (no function) 3 0 0 0 0 100%
src/certus/nodes/core.py Token.__post_init__ 1 0 0 0 0 100%
src/certus/nodes/core.py Token.confidence 3 0 0 2 0 100%
src/certus/nodes/core.py Composite.__post_init__ 5 0 0 0 0 100%
src/certus/nodes/core.py Composite.value 3 0 0 2 0 100%
src/certus/nodes/core.py Composite.logprob 3 0 0 2 0 100%
src/certus/nodes/core.py Composite.start 3 0 0 2 0 100%
src/certus/nodes/core.py Composite.confidence 4 0 0 2 0 100%
src/certus/nodes/core.py Composite.leaves 3 0 0 2 0 100%
src/certus/nodes/core.py gather_leaves 5 0 0 4 0 100%
src/certus/nodes/core.py (no function) 28 0 0 0 0 100%
src/certus/nodes/struct.py Array.__post_init__ 2 0 0 0 0 100%
src/certus/nodes/struct.py Array.__getitem__ 1 0 0 0 0 100%
src/certus/nodes/struct.py Array.__iter__ 1 0 0 0 0 100%
src/certus/nodes/struct.py Array.__len__ 1 0 0 0 0 100%
src/certus/nodes/struct.py Array.__repr__ 1 0 0 0 0 100%
src/certus/nodes/struct.py Object.__post_init__ 2 0 0 0 0 100%
src/certus/nodes/struct.py Object.__getitem__ 1 0 0 0 0 100%
src/certus/nodes/struct.py Object.__repr__ 1 0 0 0 0 100%
src/certus/nodes/struct.py Object.keys 1 0 0 0 0 100%
src/certus/nodes/struct.py Object.items 1 0 0 0 0 100%
src/certus/nodes/struct.py Object.values 1 0 0 0 0 100%
src/certus/nodes/struct.py (no function) 20 0 0 0 0 100%
src/certus/parsers/__init__.py (no function) 2 0 0 0 0 100%
src/certus/parsers/struct.py parse_json 3 0 0 0 0 100%
src/certus/parsers/struct.py _parse_json 19 0 0 12 0 100%
src/certus/parsers/struct.py _find_token_span 8 0 0 2 0 100%
src/certus/parsers/struct.py _make_regex_from_json 11 0 0 4 0 100%
src/certus/parsers/struct.py _find_span_start 7 0 0 4 0 100%
src/certus/parsers/struct.py _find_span_end 6 0 0 4 0 100%
src/certus/parsers/struct.py (no function) 15 0 0 0 0 100%
src/certus/utils.py clamp 5 0 0 4 0 100%
src/certus/utils.py (no function) 1 0 0 0 0 100%
tests/__init__.py (no function) 0 0 0 0 0 100%
tests/common.py st_tokens 1 0 0 0 0 100%
tests/common.py st_token_lists 7 0 0 2 0 100%
tests/common.py (no function) 10 0 0 0 0 100%
tests/nodes/__init__.py (no function) 0 0 0 0 0 100%
tests/nodes/common.py (no function) 5 0 0 0 0 100%
tests/nodes/test_core.py test_token_init 5 0 0 0 0 100%
tests/nodes/test_core.py test_token_confidence_one_time 7 0 0 0 0 100%
tests/nodes/test_core.py test_composite_node_init 8 0 0 0 0 100%
tests/nodes/test_core.py test_composite_node_value_one_time 5 0 0 0 0 100%
tests/nodes/test_core.py test_composite_node_logprob_one_time 6 0 0 0 0 100%
tests/nodes/test_core.py test_composite_node_start_one_time 6 0 0 0 0 100%
tests/nodes/test_core.py test_composite_node_confidence_one_time 7 0 0 0 0 100%
tests/nodes/test_core.py test_composite_node_leaves_one_time 5 0 0 0 0 100%
tests/nodes/test_core.py test_gather_leaves_composite_node 5 0 0 0 0 100%
tests/nodes/test_core.py test_gather_leaves_composite_node._count_leaves 3 0 0 2 0 100%
tests/nodes/test_core.py test_gather_leaves_solo_token_node 1 0 0 0 0 100%
tests/nodes/test_core.py test_gather_leaves_composite_all_father 1 0 0 0 0 100%
tests/nodes/test_core.py test_gather_leaves_raises_for_other_node_type 4 0 0 0 0 100%
tests/nodes/test_core.py (no function) 31 0 0 0 0 100%
tests/nodes/test_struct.py get_num_composites 6 0 0 4 0 100%
tests/nodes/test_struct.py test_array_init_sets_children 1 0 0 0 0 100%
tests/nodes/test_struct.py test_array_get_item 3 0 0 0 0 100%
tests/nodes/test_struct.py test_array_iterate 3 0 0 2 0 100%
tests/nodes/test_struct.py test_array_length 1 0 0 0 0 100%
tests/nodes/test_struct.py test_array_repr 6 0 0 0 0 100%
tests/nodes/test_struct.py test_object_sets_children 1 0 0 0 0 100%
tests/nodes/test_struct.py test_object_get_item 3 0 0 0 0 100%
tests/nodes/test_struct.py test_object_repr 6 0 0 0 0 100%
tests/nodes/test_struct.py test_object_dict_views 4 0 0 0 0 100%
tests/nodes/test_struct.py (no function) 28 0 0 0 0 100%
tests/parsers/__init__.py (no function) 0 0 0 0 0 100%
tests/parsers/common.py (no function) 2 0 0 0 0 100%
tests/parsers/test_struct.py st_tokenise_string 8 0 0 2 0 100%
tests/parsers/test_struct.py st_span_lists 3 0 0 0 0 100%
tests/parsers/test_struct.py st_data_span_params 7 0 0 2 0 100%
tests/parsers/test_struct.py _check_parsed_primitive_class 5 0 0 2 0 100%
tests/parsers/test_struct.py _check_find_token_span 8 0 0 2 0 100%
tests/parsers/test_struct.py test_parse_json_main 5 0 0 0 0 100%
tests/parsers/test_struct.py test_parse_json_main_dumps_kw_none_becomes_empty_dict 3 0 0 0 0 100%
tests/parsers/test_struct.py test_parse_json_primitive_dict 10 0 0 2 0 100%
tests/parsers/test_struct.py test_parse_json_primitive_list 10 0 0 2 0 100%
tests/parsers/test_struct.py test_parse_json_primitive 10 0 0 0 0 100%
tests/parsers/test_struct.py test_parse_json_raises_for_invalid_json 6 0 0 0 0 100%
tests/parsers/test_struct.py test_find_token_span_match 9 0 0 0 0 100%
tests/parsers/test_struct.py test_find_token_span_no_match 6 0 0 0 0 100%
tests/parsers/test_struct.py test_make_regex_from_json_dict 6 0 0 0 0 100%
tests/parsers/test_struct.py test_make_regex_from_json_list 6 0 0 0 0 100%
tests/parsers/test_struct.py test_make_regex_from_json_primitive 4 0 0 0 0 100%
tests/parsers/test_struct.py test_make_regex_from_json_recursive 10 0 0 0 0 100%
tests/parsers/test_struct.py st_dicts_with_spaces 8 0 0 4 0 100%
tests/parsers/test_struct.py test_make_regex_from_json_multispaces_only_in_strings 6 0 0 2 0 100%
tests/parsers/test_struct.py test_make_regex_from_json_handles_indent 3 0 0 0 0 100%
tests/parsers/test_struct.py st_span_start_params 7 0 0 0 0 100%
tests/parsers/test_struct.py test_find_span_start_success 6 0 0 0 0 100%
tests/parsers/test_struct.py test_find_span_start_failure 6 0 0 0 0 100%
tests/parsers/test_struct.py st_span_end_params 5 0 0 0 0 100%
tests/parsers/test_struct.py test_find_span_end_success 3 0 0 0 0 100%
tests/parsers/test_struct.py test_find_span_end_failure 5 0 0 0 0 100%
tests/parsers/test_struct.py (no function) 66 0 0 0 0 100%
tests/test_interface.py test_from_google_no_candidates 2 0 0 0 0 100%
tests/test_interface.py _check_google_candidate_nodes 10 0 0 2 0 100%
tests/test_interface.py test_from_google_all_candidates 5 0 0 0 0 100%
tests/test_interface.py test_from_google_some_candidates 6 0 0 0 0 100%
tests/test_interface.py (no function) 11 0 0 0 0 100%
tests/test_utils.py test_clamp_no_limits 1 0 0 0 0 100%
tests/test_utils.py test_clamp_lower_limit 6 0 0 2 0 100%
tests/test_utils.py test_clamp_upper_limit 6 0 0 2 0 100%
tests/test_utils.py test_clamp_both_limits 9 0 0 4 0 100%
tests/test_utils.py (no function) 12 0 0 0 0 100%
Total   669 0 0 90 0 100%

No items found using the specified filter.