Merged
Conversation
It was not used anywhere. Presumably, it was written thinking that a StateDelta would be check after making it. But instead, each step of creating the StateDelta is checked.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6323 +/- ##
==========================================
- Coverage 51.86% 51.85% -0.02%
==========================================
Files 652 652
Lines 87442 87425 -17
==========================================
- Hits 45353 45335 -18
+ Misses 39227 39226 -1
- Partials 2862 2864 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
algorandskiy
approved these changes
May 12, 2025
Contributor
|
Non-test references removed in #1765 #!/usr/bin/env bash
set -euo pipefail
sym_line="$(gopls symbols "data/basics/teal.go" 2>/dev/null | grep -m1 'StateDelta).Valid Method' || true)"
if [[ -z "$sym_line" ]]; then
exit 1
fi
pos_range="${sym_line##* }"
start_pos="${pos_range%%-*}"
line_no="${start_pos%%:*}"
col_no="${start_pos##*:}"
ref_total="$(gopls references "data/basics/teal.go:${line_no}:${col_no}" 2>/dev/null || true)"
non_test_count="$(printf '%s\n' "$ref_total" | grep -v '_test\.go:' | grep -c .)"
if (( non_test_count > 0 )); then
exit 0
else
exit 1
fi |
cce
approved these changes
May 13, 2025
This was referenced May 15, 2025
cce
pushed a commit
to cce/go-algorand
that referenced
this pull request
May 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
It was not used anywhere. Presumably, it was written thinking that a StateDelta would be check after making it. But instead, each step of creating the StateDelta is checked.
Test Plan
I guess if it compiles, I was right!