src/backend/nodes/outfuncs.c - Coverage Report

← Back to Overview

# src/backend/nodes/outfuncs.c

Coverage: 28/30 lines (93.3%)
Total Lines
30
modified
Covered
28
93.3%
Uncovered
2
6.7%
Keyboard navigation
_outRPRPattern() lines 732-779
Modified Lines Coverage: 28/30 lines (93.3%)

Line | Hits | Source | Commit
--- | --- | --- | ---
732 | 2980 | _outRPRPattern(StringInfo str, const RPRPattern *node) | c54ba27Row pattern recognition patch (parse/analysis).
733 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
734 | 2980 | WRITE_NODE_TYPE("RPRPATTERN"); | c54ba27Row pattern recognition patch (parse/analysis).
735 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
736 | 2980 | WRITE_INT_FIELD(numVars); | c54ba27Row pattern recognition patch (parse/analysis).
737 | 2980 | WRITE_INT_FIELD(maxDepth); | c54ba27Row pattern recognition patch (parse/analysis).
738 | 2980 | WRITE_INT_FIELD(numElements); | c54ba27Row pattern recognition patch (parse/analysis).
739 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
740 | - | /* Write varNames array as list of strings */ | c54ba27Row pattern recognition patch (parse/analysis).
741 | 2980 | appendStringInfoString(str, " :varNames"); | c54ba27Row pattern recognition patch (parse/analysis).
742 | 2980 | if (node->numVars > 0 && node->varNames != NULL) | c54ba27Row pattern recognition patch (parse/analysis).
743 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
744 | 2980 | appendStringInfoString(str, " ("); | c54ba27Row pattern recognition patch (parse/analysis).
745 | 10116 | for (int i = 0; i < node->numVars; i++) | c54ba27Row pattern recognition patch (parse/analysis).
746 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
747 | 7136 | if (i > 0) | c54ba27Row pattern recognition patch (parse/analysis).
748 | 4156 | appendStringInfoChar(str, ' '); | c54ba27Row pattern recognition patch (parse/analysis).
749 | 7136 | outToken(str, node->varNames[i]); | c54ba27Row pattern recognition patch (parse/analysis).
750 | - | } | c54ba27Row pattern recognition patch (parse/analysis).
751 | 2980 | appendStringInfoChar(str, ')'); | c54ba27Row pattern recognition patch (parse/analysis).
752 | - | } | c54ba27Row pattern recognition patch (parse/analysis).
753 | - | else | c54ba27Row pattern recognition patch (parse/analysis).
754 | 0 | appendStringInfoString(str, " <>"); | c54ba27Row pattern recognition patch (parse/analysis).
755 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
756 | - | /* Write elements array */ | c54ba27Row pattern recognition patch (parse/analysis).
757 | 2980 | appendStringInfoString(str, " :elements"); | c54ba27Row pattern recognition patch (parse/analysis).
758 | 2980 | if (node->numElements > 0 && node->elements != NULL) | c54ba27Row pattern recognition patch (parse/analysis).
759 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
760 | 2980 | appendStringInfoChar(str, ' '); | c54ba27Row pattern recognition patch (parse/analysis).
761 | 17380 | for (int i = 0; i < node->numElements; i++) | c54ba27Row pattern recognition patch (parse/analysis).
762 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
763 | 14400 | const RPRPatternElement *elem = &node->elements[i]; | c54ba27Row pattern recognition patch (parse/analysis).
764 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
765 | 14400 | appendStringInfo(str, "(%d %d %u %d %d %d %d)", | c54ba27Row pattern recognition patch (parse/analysis).
766 | 14400 | (int) elem->varId, | c54ba27Row pattern recognition patch (parse/analysis).
767 | 14400 | (int) elem->depth, | c54ba27Row pattern recognition patch (parse/analysis).
768 | 14400 | (unsigned) elem->flags, | c54ba27Row pattern recognition patch (parse/analysis).
769 | 14400 | (int) elem->min, | c54ba27Row pattern recognition patch (parse/analysis).
770 | 14400 | (int) elem->max, | c54ba27Row pattern recognition patch (parse/analysis).
771 | 14400 | (int) elem->next, | c54ba27Row pattern recognition patch (parse/analysis).
772 | 14400 | (int) elem->jump); | c54ba27Row pattern recognition patch (parse/analysis).
773 | - | } | c54ba27Row pattern recognition patch (parse/analysis).
774 | - | } | c54ba27Row pattern recognition patch (parse/analysis).
775 | - | else | c54ba27Row pattern recognition patch (parse/analysis).
776 | 0 | appendStringInfoString(str, " <>"); | c54ba27Row pattern recognition patch (parse/analysis).
777 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
778 | 4848 | WRITE_BOOL_FIELD(isAbsorbable); | c54ba27Row pattern recognition patch (parse/analysis).
779 | 2980 | } | c54ba27Row pattern recognition patch (parse/analysis).