LCOV - differential code coverage report
Current view: top level - src/backend/utils/adt - xml.c (source / functions) Coverage Total Hit UNC UBC GBC GNC CBC EUB ECB DUB DCB
Current: 0e5ff9b9b45a657aea12440478dc002e9b01f138 vs 0123ce131fca454009439dfa3b2266d1d40737d7 Lines: 82.4 % 1766 1455 16 295 2 39 1414 1 4 26
Current Date: 2026-03-14 14:10:32 -0400 Functions: 87.6 % 105 92 1 12 1 9 82
Baseline: lcov-20260315-024220-baseline Branches: 60.7 % 1399 849 20 530 18 831 49 21 2 2
Baseline Date: 2026-03-14 15:27:56 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 80.0 % 5 4 1 3 1
(7,30] days: 0.0 % 2 0 2
(30,360] days: 76.7 % 73 56 13 4 36 20
(360..) days: 82.7 % 1686 1395 291 2 1393 1
Function coverage date bins:
(360..) days: 87.6 % 105 92 1 12 1 9 82
Branch coverage date bins:
(30,360] days: 57.1 % 56 32 20 4 18 14
(360..) days: 57.8 % 1413 817 526 817 49 21

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
xmltotext_with_options GNC 90 70.5 % (55 / 78) 61.0 % (50 / 82)
xml_recv UNC 0 0.0 % (0 / 20) 0.0 % (0 / 4)
errdetail_for_xml_code CBC 3 25.0 % (6 / 24) 14.3 % (1 / 7)
database_to_xml_internal UBC 0 0.0 % (0 / 17) 0.0 % (0 / 8)
map_sql_catalog_to_xmlschema_types UBC 0 0.0 % (0 / 17) 0.0 % (0 / 6)
database_to_xmlschema_internal UBC 0 0.0 % (0 / 16) 0.0 % (0 / 6)
map_sql_value_to_xml_value CBC 68134 83.1 % (69 / 83) 56.5 % (35 / 62)
xmlelement GNC 11333 77.0 % (47 / 61) 68.6 % (48 / 70)
map_sql_type_to_xml_name CBC 405 82.9 % (63 / 76) 69.4 % (25 / 36)
map_sql_type_to_xmlschema_type CBC 273 80.9 % (55 / 68) 68.6 % (24 / 35)
parse_xml_decl CBC 35307 86.5 % (77 / 89) 48.6 % (101 / 208)
xpath_internal CBC 279 87.7 % (71 / 81) 57.1 % (40 / 70)
XmlTableSetDocument CBC 132 69.2 % (18 / 26) 37.5 % (6 / 16)
xml_send UBC 0 0.0 % (0 / 7)
XmlTableInitOpaque GNC 132 72.7 % (16 / 22) 40.0 % (4 / 10)
database_to_xml_and_xmlschema UBC 0 0.0 % (0 / 6)
escape_xml CBC 56975 70.0 % (14 / 20) 66.7 % (6 / 9)
xml_xmlnodetoxmltype GNC 96 84.6 % (33 / 39) 58.3 % (21 / 36)
xmltext GNC 15 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 1826 81.8 % (18 / 22) 81.2 % (26 / 32)
xml_errorHandler GNC 199 93.3 % (56 / 60) 59.5 % (25 / 42)
xml_xpathobjtoxmlarray CBC 270 88.6 % (31 / 35) 73.7 % (14 / 19)
XmlTableGetValue CBC 68481 94.4 % (51 / 54) 74.1 % (40 / 54)
xml_doctype_in_content CBC 487 88.0 % (22 / 25) 79.2 % (19 / 24)
xml_parse CBC 640 95.7 % (67 / 70) 82.1 % (46 / 56)
xmltotext UBC 0 0.0 % (0 / 3)
GetXmlTableBuilderPrivateData CBC 80891 71.4 % (5 / 7) 25.0 % (2 / 8)
XmlTableSetColumnFilter GNC 387 81.8 % (9 / 11) 41.7 % (5 / 12)
XmlTableSetRowFilter CBC 129 80.0 % (8 / 10) 40.0 % (4 / 10)
cursor_to_xmlschema CBC 6 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 3 85.7 % (12 / 14) 25.0 % (2 / 8)
query_to_xmlschema CBC 3 85.7 % (12 / 14) 25.0 % (2 / 8)
xml_ereport CBC 7 77.8 % (7 / 9) 60.0 % (6 / 10)
xml_errsave CBC 102 77.8 % (7 / 9) 50.0 % (5 / 10)
xml_out_internal CBC 11923 84.6 % (11 / 13) 62.5 % (5 / 8)
xml_pstrdup_and_free CBC 56981 77.8 % (7 / 9) 50.0 % (3 / 6)
xmlconcat CBC 11267 93.1 % (27 / 29) 79.2 % (19 / 24)
xmlconcat2 CBC 11255 75.0 % (6 / 8) 66.7 % (4 / 6)
xmlvalidate UBC 0 0.0 % (0 / 2) 0.0 % (0 / 2)
XmlTableFetchRow CBC 11624 92.3 % (12 / 13) 66.7 % (8 / 12)
XmlTableSetNamespace CBC 9 88.9 % (8 / 9) 66.7 % (4 / 6)
cursor_to_xml CBC 6 95.2 % (20 / 21) 70.0 % (7 / 10)
map_sql_table_to_xmlschema CBC 39 97.4 % (38 / 39) 81.2 % (13 / 16)
pg_xml_done CBC 12486 91.7 % (11 / 12) 30.0 % (3 / 10)
pg_xml_init GNC 12486 93.8 % (15 / 16) 25.0 % (1 / 4)
print_xml_decl CBC 11956 94.1 % (16 / 17) 70.0 % (14 / 20)
query_to_oid_list CBC 18 90.9 % (10 / 11) 50.0 % (4 / 8)
query_to_xml_internal CBC 56 94.7 % (18 / 19) 78.6 % (11 / 14)
sqlchar_to_unicode CBC 9140 83.3 % (5 / 6) 50.0 % (1 / 2)
SPI_sql_row_to_xmlelement CBC 156 100.0 % (23 / 23) 100.0 % (14 / 14)
XmlTableDestroyOpaque CBC 132 100.0 % (21 / 21) 75.0 % (12 / 16)
_SPI_strdup CBC 12 100.0 % (5 / 5)
appendStringInfoLineSeparator CBC 293 100.0 % (5 / 5) 100.0 % (2 / 2)
appendStringInfoText CBC 66 100.0 % (3 / 3)
chopStringInfoNewlines CBC 441 100.0 % (4 / 4) 100.0 % (4 / 4)
cstring_to_xmltype CBC 39 100.0 % (2 / 2)
is_valid_xml_namechar CBC 7321 100.0 % (6 / 6) 50.0 % (32 / 64)
is_valid_xml_namefirst CBC 1819 100.0 % (3 / 3) 40.0 % (16 / 40)
map_multipart_sql_identifier_to_xml_name CBC 192 100.0 % (12 / 12) 62.5 % (5 / 8)
map_sql_schema_to_xmlschema_types CBC 9 100.0 % (24 / 24) 92.9 % (13 / 14)
map_sql_typecoll_to_xmlschema_types CBC 48 100.0 % (18 / 18) 87.5 % (21 / 24)
map_xml_name_to_sql_identifier CBC 64 100.0 % (16 / 16) 62.5 % (10 / 16)
pg_xmlCharStrndup CBC 1212 100.0 % (5 / 5)
pg_xml_error_occurred GBC 62 100.0 % (2 / 2)
pg_xml_init_library CBC 47793 100.0 % (5 / 5) 100.0 % (2 / 2)
query_to_xml CBC 5 100.0 % (6 / 6)
schema_get_xml_visible_tables CBC 18 100.0 % (4 / 4)
schema_to_xml CBC 6 100.0 % (8 / 8)
schema_to_xml_and_xmlschema CBC 3 100.0 % (9 / 9)
schema_to_xml_internal CBC 9 100.0 % (17 / 17) 87.5 % (7 / 8)
schema_to_xmlschema CBC 6 100.0 % (6 / 6)
schema_to_xmlschema_internal CBC 9 100.0 % (16 / 16) 83.3 % (5 / 6)
stringinfo_to_xmltype CBC 11392 100.0 % (2 / 2)
table_to_xml CBC 18 100.0 % (6 / 6)
table_to_xml_and_xmlschema CBC 12 100.0 % (9 / 9)
table_to_xml_internal CBC 48 100.0 % (4 / 4)
table_to_xmlschema CBC 15 100.0 % (9 / 9)
texttoxml CBC 5 100.0 % (3 / 3)
wellformed_xml CBC 57 100.0 % (6 / 6) 100.0 % (2 / 2)
xmlBuffer_to_xmltype CBC 11441 100.0 % (2 / 2)
xmlPgEntityLoader CBC 9 100.0 % (2 / 2)
xml_in GNC 428 100.0 % (7 / 7) 100.0 % (2 / 2)
xml_is_document CBC 12 100.0 % (6 / 6) 100.0 % (2 / 2)
xml_is_well_formed CBC 45 100.0 % (3 / 3)
xml_is_well_formed_content CBC 6 100.0 % (3 / 3)
xml_is_well_formed_document CBC 6 100.0 % (3 / 3)
xml_out CBC 11791 100.0 % (3 / 3)
xml_pnstrdup CBC 100 100.0 % (5 / 5)
xml_text2xmlChar CBC 715 100.0 % (2 / 2)
xmlcomment CBC 21 100.0 % (14 / 14) 78.6 % (11 / 14)
xmldata_root_element_end CBC 119 100.0 % (3 / 3)
xmldata_root_element_start CBC 119 100.0 % (13 / 13) 91.7 % (11 / 12)
xmlexists CBC 99 100.0 % (5 / 5)
xmlparse CBC 71 100.0 % (4 / 4)
xmlpi CBC 36 100.0 % (19 / 19) 83.3 % (10 / 12)
xmlroot CBC 30 100.0 % (23 / 23) 85.7 % (6 / 7)
xpath CBC 63 100.0 % (7 / 7)
xpath_exists CBC 117 100.0 % (6 / 6)
xsd_schema_element_end CBC 48 100.0 % (3 / 3)
xsd_schema_element_start CBC 48 100.0 % (6 / 6) 100.0 % (2 / 2)

Generated by: LCOV version 2.4-beta