aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-01-23 16:50:51 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-01-23 17:04:39 +0300
commit203ad1bbfb63b4c33a489508b126164e58d55271 (patch)
treedc98addcc7770fd857d2510ccb4e6e8f90d5e96e
parente69661d981b700bc41768a57b472b08817afdf04 (diff)
downloadydb-203ad1bbfb63b4c33a489508b126164e58d55271.tar.gz
Intermediate changes
commit_hash:d431da6dd417574f7433ca4a3784c0943672ba18
-rwxr-xr-xyql/essentials/core/type_ann/type-ann-coverage.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/yql/essentials/core/type_ann/type-ann-coverage.sh b/yql/essentials/core/type_ann/type-ann-coverage.sh
index 62f6d5525c..09a28963e5 100755
--- a/yql/essentials/core/type_ann/type-ann-coverage.sh
+++ b/yql/essentials/core/type_ann/type-ann-coverage.sh
@@ -49,11 +49,15 @@ ya make -tA \
UNCOVERED_ANCHOR="<td class='uncovered-line'><pre>0</pre></td>"
# ... find the return type of the type annotation callback,
# preceding the target function name ...
+RETURN_TYPE="IGraphTransformer::TStatus"
# XXX: See more info re \K here: https://perldoc.perl.org/perlre#%5CK.
-CALLBACK_PREFIX="<td class='code'><pre>\s*IGraphTransformer::TStatus\s*\K"
+CALLBACK_PREFIX="<td class='code'><pre>\s*$RETURN_TYPE\s*\K"
# ... and find the parameters types of the type annotation
# callback, following the target function name.
-CALLBACK_SUFFIX="(?=\(const TExprNode::TPtr&amp; input, TExprNode::TPtr&amp; output, TContext&amp; ctx\))"
+INPUT_TYPE="const TExprNode::TPtr&amp; input"
+OUTPUT_TYPE="TExprNode::TPtr&amp; output"
+CONTEXT_TYPE="(?:TExtContext|TContext)&amp; ctx"
+CALLBACK_SUFFIX="(?=\($INPUT_TYPE,\s*$OUTPUT_TYPE,\s*$CONTEXT_TYPE\))"
grep -oP "$UNCOVERED_ANCHOR$CALLBACK_PREFIX(\w+)$CALLBACK_SUFFIX" \
-r $REPORT_ROOT/coverage.report/ \
--no-filename \