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

[Issue:3569] Do better about reaching into proto structs. #3570

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

morrowc
Copy link
Contributor

@morrowc morrowc commented Nov 8, 2024

Do not reach into a snake pit without first checking if snakes in pit! Patterns like:

  pb "myprotofile"

  ...
  var f pb.Foo
  snakesBhere := f.THINGS.N.Snakes

get you a panic().
Let's not do that, ok?

Do not reach into a snake pit without first checking if snakes in pit!
Patterns like:
```
  pb "myprotofile"

  ...
  var f pb.Foo
  snakesBhere := f.THINGS.N.Snakes
```

get you a panic().
Let's not do that, ok?
@morrowc morrowc requested a review from a team as a code owner November 8, 2024 12:06
@OpenConfigBot
Copy link

Pull Request Functional Test Report for #3570 / 86a3ae2

No tests identified for validation.

Help

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11741787385

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.268%

Totals Coverage Status
Change from base Build 11736802405: 0.0%
Covered Lines: 1983
Relevant Lines: 3588

💛 - Coveralls

@robshakir robshakir merged commit a19d21b into main Nov 8, 2024
15 checks passed
@self-maurya self-maurya deleted the goBetter branch November 9, 2024 12:26
ANISH-GOTTAPU pushed a commit to open-traffic-generator/featureprofiles that referenced this pull request Nov 28, 2024
…#3570)

Do not reach into a snake pit without first checking if snakes in pit!
Patterns like:
```
  pb "myprotofile"

  ...
  var f pb.Foo
  snakesBhere := f.THINGS.N.Snakes
```

get you a panic().
Let's not do that, ok?
alshabib pushed a commit to alshabib/featureprofiles that referenced this pull request Jan 19, 2025
…#3570)

Do not reach into a snake pit without first checking if snakes in pit!
Patterns like:
```
  pb "myprotofile"

  ...
  var f pb.Foo
  snakesBhere := f.THINGS.N.Snakes
```

get you a panic().
Let's not do that, ok?
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.

4 participants