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

← Back to Overview

# src/backend/nodes/equalfuncs.c

Coverage: 0/13 lines (0.0%)
Total Lines
13
modified
Covered
0
0.0%
Uncovered
13
100.0%
Keyboard navigation
_equalRPRPattern() lines 154-185
Modified Lines Coverage: 0/13 lines (0.0%)

Line | Hits | Source | Commit
--- | --- | --- | ---
154 | 0 | _equalRPRPattern(const RPRPattern *a, const RPRPattern *b) | c54ba27Row pattern recognition patch (parse/analysis).
155 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
156 | 0 | COMPARE_SCALAR_FIELD(numVars); | c54ba27Row pattern recognition patch (parse/analysis).
157 | 0 | COMPARE_SCALAR_FIELD(maxDepth); | c54ba27Row pattern recognition patch (parse/analysis).
158 | 0 | COMPARE_SCALAR_FIELD(numElements); | c54ba27Row pattern recognition patch (parse/analysis).
159 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
160 | - | /* Compare varNames array */ | c54ba27Row pattern recognition patch (parse/analysis).
161 | 0 | if (a->numVars > 0) | c54ba27Row pattern recognition patch (parse/analysis).
162 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
163 | 0 | if (a->varNames == NULL || b->varNames == NULL) | c54ba27Row pattern recognition patch (parse/analysis).
164 | - | return false; | c54ba27Row pattern recognition patch (parse/analysis).
165 | 0 | for (int i = 0; i < a->numVars; i++) | c54ba27Row pattern recognition patch (parse/analysis).
166 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
167 | 0 | if (strcmp(a->varNames[i], b->varNames[i]) != 0) | c54ba27Row pattern recognition patch (parse/analysis).
168 | - | return false; | c54ba27Row pattern recognition patch (parse/analysis).
169 | - | } | c54ba27Row pattern recognition patch (parse/analysis).
170 | - | } | c54ba27Row pattern recognition patch (parse/analysis).
171 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
172 | - | /* Compare elements array */ | c54ba27Row pattern recognition patch (parse/analysis).
173 | 0 | if (a->numElements > 0) | c54ba27Row pattern recognition patch (parse/analysis).
174 | - | { | c54ba27Row pattern recognition patch (parse/analysis).
175 | 0 | if (a->elements == NULL || b->elements == NULL) | c54ba27Row pattern recognition patch (parse/analysis).
176 | - | return false; | c54ba27Row pattern recognition patch (parse/analysis).
177 | 0 | if (memcmp(a->elements, b->elements, | c54ba27Row pattern recognition patch (parse/analysis).
178 | 0 | a->numElements * sizeof(RPRPatternElement)) != 0) | c54ba27Row pattern recognition patch (parse/analysis).
179 | - | return false; | c54ba27Row pattern recognition patch (parse/analysis).
180 | - | } | c54ba27Row pattern recognition patch (parse/analysis).
181 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
182 | 0 | COMPARE_SCALAR_FIELD(isAbsorbable); | c54ba27Row pattern recognition patch (parse/analysis).
183 | - |  | c54ba27Row pattern recognition patch (parse/analysis).
184 | - | return true; | c54ba27Row pattern recognition patch (parse/analysis).
185 | - | } | c54ba27Row pattern recognition patch (parse/analysis).