LCOV - differential code coverage report
Current view: top level - src/backend/utils/adt - xml.c (source / functions) Coverage Total Hit UNC UBC GNC CBC DUB DCB
Current: c38de3ae6098ccf1904109f2e550eb4777f66024 vs e352ac8c5c90ed6ce792f044c22145578542a330 Lines: 82.2 % 1773 1457 4 312 21 1436 4 26
Current Date: 2026-11-05 14:14:01 +0100 Functions: 87.6 % 105 92 1 12 8 84
Baseline: lcov-20261105-baseline Branches: 59.9 % 1413 847 9 557 15 832
Baseline Date: 2026-11-05 14:14:01 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 53.8 % 13 7 6 7
(7,30] days: 82.6 % 23 19 4 19
(30,360] days: 84.6 % 26 22 4 2 20
(360..) days: 82.3 % 1711 1409 302 1409
Function coverage date bins:
(30,360] days: 100.0 % 1 1 1
(360..) days: 87.5 % 104 91 1 12 7 84
Branch coverage date bins:
(1,7] days: 28.6 % 14 4 10 4
(7,30] days: 62.5 % 24 15 9 15
(30,360] days: 66.7 % 18 12 6 12
(360..) days: 60.1 % 1357 816 541 816

Function Name Sort by function name TLA Hit count Sort by function hit count Lines Sort by unexercised lines in function Branches Sort by unexercised branches in function
xml_recv UNC 0 0.0 % (0 / 20) 0.0 % (0 / 4)
map_sql_catalog_to_xmlschema_types UBC 0 0.0 % (0 / 19) 0.0 % (0 / 8)
xmltotext_with_options GNC 158 73.2 % (52 / 71) 61.1 % (44 / 72)
errdetail_for_xml_code CBC 4 25.0 % (6 / 24) 14.3 % (1 / 7)
database_to_xml_internal UBC 0 0.0 % (0 / 17) 0.0 % (0 / 8)
database_to_xmlschema_internal UBC 0 0.0 % (0 / 16) 0.0 % (0 / 6)
map_sql_value_to_xml_value CBC 91116 83.1 % (69 / 83) 56.5 % (35 / 62)
xmlelement CBC 15152 77.0 % (47 / 61) 68.6 % (48 / 70)
map_sql_type_to_xml_name CBC 540 82.9 % (63 / 76) 69.4 % (25 / 36)
map_sql_type_to_xmlschema_type CBC 364 80.9 % (55 / 68) 68.6 % (24 / 35)
parse_xml_decl CBC 47315 86.5 % (77 / 89) 48.6 % (101 / 208)
xpath_internal CBC 402 87.7 % (71 / 81) 57.1 % (40 / 70)
XmlTableSetDocument CBC 176 69.2 % (18 / 26) 37.5 % (6 / 16)
xml_send UBC 0 0.0 % (0 / 7)
XmlTableInitOpaque CBC 176 72.7 % (16 / 22) 40.0 % (4 / 10)
database_to_xml_and_xmlschema UBC 0 0.0 % (0 / 6)
escape_xml CBC 76196 70.0 % (14 / 20) 66.7 % (6 / 9)
xml_parse GNC 940 91.8 % (67 / 73) 76.7 % (46 / 60)
xml_xmlnodetoxmltype CBC 149 85.4 % (35 / 41) 60.5 % (23 / 38)
xmltext CBC 25 66.7 % (12 / 18) 40.0 % (4 / 10)
database_to_xml UBC 0 0.0 % (0 / 5)
database_to_xmlschema UBC 0 0.0 % (0 / 5)
xmlChar_to_encoding UBC 0 0.0 % (0 / 5) 0.0 % (0 / 4)
map_sql_identifier_to_xml_name CBC 2430 81.8 % (18 / 22) 81.2 % (26 / 32)
xml_errorHandler CBC 289 93.3 % (56 / 60) 59.5 % (25 / 42)
xml_xpathobjtoxmlarray CBC 390 88.6 % (31 / 35) 73.7 % (14 / 19)
XmlTableGetValue CBC 91556 94.4 % (51 / 54) 74.1 % (40 / 54)
xml_doctype_in_content CBC 709 88.0 % (22 / 25) 79.2 % (19 / 24)
xml_ereport CBC 8 66.7 % (6 / 9) 40.0 % (4 / 10)
xmltotext UBC 0 0.0 % (0 / 3)
GetXmlTableBuilderPrivateData CBC 108144 71.4 % (5 / 7) 25.0 % (2 / 8)
XmlTableSetColumnFilter CBC 516 81.8 % (9 / 11) 41.7 % (5 / 12)
XmlTableSetRowFilter CBC 172 80.0 % (8 / 10) 40.0 % (4 / 10)
cursor_to_xmlschema CBC 8 85.7 % (12 / 14) 25.0 % (2 / 8)
database_get_xml_visible_schemas UBC 0 0.0 % (0 / 2)
database_get_xml_visible_tables UBC 0 0.0 % (0 / 2)
query_to_xml_and_xmlschema CBC 4 85.7 % (12 / 14) 25.0 % (2 / 8)
query_to_xmlschema CBC 4 85.7 % (12 / 14) 25.0 % (2 / 8)
xml_errsave CBC 144 77.8 % (7 / 9) 50.0 % (5 / 10)
xml_out_internal CBC 15912 84.6 % (11 / 13) 62.5 % (5 / 8)
xml_pstrdup_and_free CBC 76201 77.8 % (7 / 9) 50.0 % (3 / 6)
xmlconcat CBC 15070 93.1 % (27 / 29) 79.2 % (19 / 24)
xmlconcat2 CBC 15048 75.0 % (6 / 8) 66.7 % (4 / 6)
xmlvalidate UBC 0 0.0 % (0 / 2) 0.0 % (0 / 2)
XmlTableFetchRow CBC 15540 92.3 % (12 / 13) 66.7 % (8 / 12)
XmlTableSetNamespace CBC 12 88.9 % (8 / 9) 66.7 % (4 / 6)
cursor_to_xml CBC 8 95.2 % (20 / 21) 70.0 % (7 / 10)
map_sql_schema_to_xmlschema_types CBC 12 96.2 % (25 / 26) 77.8 % (14 / 18)
map_sql_table_to_xmlschema CBC 52 97.4 % (37 / 38) 81.2 % (13 / 16)
pg_xml_done CBC 16830 91.7 % (11 / 12) 30.0 % (3 / 10)
pg_xml_init CBC 16830 93.8 % (15 / 16) 25.0 % (1 / 4)
print_xml_decl CBC 15966 94.1 % (16 / 17) 70.0 % (14 / 20)
query_to_oid_list CBC 24 90.9 % (10 / 11) 50.0 % (4 / 8)
query_to_xml_internal CBC 74 94.7 % (18 / 19) 78.6 % (11 / 14)
schema_to_xml_internal CBC 12 95.0 % (19 / 20) 66.7 % (8 / 12)
sqlchar_to_unicode CBC 12173 83.3 % (5 / 6) 50.0 % (1 / 2)
xmlparse GNC 121 85.7 % (6 / 7) 25.0 % (2 / 8)
SPI_sql_row_to_xmlelement CBC 206 100.0 % (23 / 23) 100.0 % (14 / 14)
XmlTableDestroyOpaque CBC 176 100.0 % (21 / 21) 75.0 % (12 / 16)
_SPI_strdup CBC 16 100.0 % (5 / 5)
appendStringInfoLineSeparator CBC 407 100.0 % (5 / 5) 100.0 % (2 / 2)
appendStringInfoText CBC 93 100.0 % (3 / 3)
chopStringInfoNewlines CBC 613 100.0 % (4 / 4) 100.0 % (4 / 4)
cstring_to_xmltype CBC 57 100.0 % (2 / 2)
is_valid_xml_namechar CBC 9752 100.0 % (6 / 6) 50.0 % (32 / 64)
is_valid_xml_namefirst CBC 2421 100.0 % (3 / 3) 40.0 % (16 / 40)
map_multipart_sql_identifier_to_xml_name CBC 256 100.0 % (12 / 12) 62.5 % (5 / 8)
map_sql_typecoll_to_xmlschema_types CBC 64 100.0 % (18 / 18) 87.5 % (21 / 24)
map_xml_name_to_sql_identifier CBC 72 100.0 % (16 / 16) 62.5 % (10 / 16)
pg_xmlCharStrndup GNC 1676 100.0 % (5 / 5)
pg_xml_error_occurred CBC 47 100.0 % (2 / 2)
pg_xml_init_library CBC 64145 100.0 % (5 / 5) 100.0 % (2 / 2)
query_to_xml CBC 6 100.0 % (6 / 6)
schema_get_xml_visible_tables CBC 24 100.0 % (4 / 4)
schema_to_xml CBC 8 100.0 % (8 / 8)
schema_to_xml_and_xmlschema CBC 4 100.0 % (9 / 9)
schema_to_xmlschema CBC 8 100.0 % (6 / 6)
schema_to_xmlschema_internal CBC 12 100.0 % (16 / 16) 83.3 % (5 / 6)
stringinfo_to_xmltype CBC 15257 100.0 % (2 / 2)
table_to_xml CBC 24 100.0 % (6 / 6)
table_to_xml_and_xmlschema CBC 16 100.0 % (9 / 9)
table_to_xml_internal CBC 64 100.0 % (4 / 4)
table_to_xmlschema CBC 20 100.0 % (9 / 9)
texttoxml CBC 4 100.0 % (3 / 3)
wellformed_xml GNC 80 100.0 % (6 / 6) 100.0 % (2 / 2)
xmlBuffer_to_xmltype CBC 15331 100.0 % (2 / 2)
xmlPgEntityLoader CBC 15 100.0 % (2 / 2)
xml_in GNC 584 100.0 % (7 / 7) 100.0 % (2 / 2)
xml_is_document GNC 25 100.0 % (6 / 6) 100.0 % (2 / 2)
xml_is_well_formed CBC 60 100.0 % (3 / 3)
xml_is_well_formed_content CBC 10 100.0 % (3 / 3)
xml_is_well_formed_document CBC 10 100.0 % (3 / 3)
xml_out CBC 15736 100.0 % (3 / 3)
xml_pnstrdup GNC 146 100.0 % (5 / 5)
xml_text2xmlChar CBC 1079 100.0 % (2 / 2)
xmlcomment CBC 33 100.0 % (14 / 14) 78.6 % (11 / 14)
xmldata_root_element_end CBC 158 100.0 % (3 / 3)
xmldata_root_element_start CBC 158 100.0 % (13 / 13) 91.7 % (11 / 12)
xmlexists CBC 135 100.0 % (5 / 5)
xmlpi CBC 57 100.0 % (19 / 19) 83.3 % (10 / 12)
xmlroot CBC 49 100.0 % (23 / 23) 85.7 % (6 / 7)
xpath CBC 106 100.0 % (7 / 7)
xpath_exists CBC 161 100.0 % (6 / 6)
xsd_schema_element_end CBC 64 100.0 % (3 / 3)
xsd_schema_element_start CBC 64 100.0 % (6 / 6) 100.0 % (2 / 2)

Generated by: LCOV version 2.0-1