Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up check - early checks #809

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Speed up check - early checks #809

merged 2 commits into from
Jan 10, 2024

Conversation

sasurobert
Copy link
Contributor

No description provided.

return err
}

errInvalidName := fmt.Errorf("%w: %s", vmhost.ErrInvalidFunctionName, functionName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe %x for the function name? As it covers the situation where there are not ASCII characters involved

@@ -78,9 +92,6 @@ func (validator *wasmValidator) verifyValidFunctionName(functionName string) err
if !validCharactersOnly(functionName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
the list to be checked is "abcdefghijklmnopqrstuvwxyz0123456789_"

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (fab45d2) 42.06% compared to head (b7fa5b5) 42.10%.
Report is 1 commits behind head on master.

Files Patch % Lines
vmhost/contexts/runtime.go 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #809      +/-   ##
==========================================
+ Coverage   42.06%   42.10%   +0.03%     
==========================================
  Files          49       49              
  Lines        9221     9230       +9     
==========================================
+ Hits         3879     3886       +7     
- Misses       4895     4896       +1     
- Partials      447      448       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sasurobert sasurobert merged commit 40dadf9 into master Jan 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants