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

generate code for caveat API changes #71

Merged
merged 1 commit into from
Sep 29, 2022
Merged

generate code for caveat API changes #71

merged 1 commit into from
Sep 29, 2022

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented Sep 22, 2022

@vroldanbet vroldanbet marked this pull request as ready for review September 28, 2022 19:31
@vroldanbet vroldanbet requested a review from a team September 28, 2022 19:31
func randString(length int) string {
b := make([]rune, length)
for i := range b {
b[i] = randInput[rand.Intn(len(randInput))] //nolint:gosec
Copy link
Member

Choose a reason for hiding this comment

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

Using randoms in tests can cause issues; I'd rather pre-generate a bunch of values

Copy link
Member

Choose a reason for hiding this comment

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

After discussion, this is fine, since it approximates context usage

Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

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

LGTM

@vroldanbet vroldanbet merged commit 6a9990c into main Sep 29, 2022
@vroldanbet vroldanbet deleted the generate-caveats branch September 29, 2022 16:12
@github-actions github-actions bot locked and limited conversation to collaborators Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants