diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-01-23 16:50:51 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-01-23 17:04:39 +0300 |
commit | 203ad1bbfb63b4c33a489508b126164e58d55271 (patch) | |
tree | dc98addcc7770fd857d2510ccb4e6e8f90d5e96e | |
parent | e69661d981b700bc41768a57b472b08817afdf04 (diff) | |
download | ydb-203ad1bbfb63b4c33a489508b126164e58d55271.tar.gz |
Intermediate changes
commit_hash:d431da6dd417574f7433ca4a3784c0943672ba18
-rwxr-xr-x | yql/essentials/core/type_ann/type-ann-coverage.sh | 8 |
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& input, TExprNode::TPtr& output, TContext& ctx\))" +INPUT_TYPE="const TExprNode::TPtr& input" +OUTPUT_TYPE="TExprNode::TPtr& output" +CONTEXT_TYPE="(?:TExtContext|TContext)& 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 \ |