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

In tests register all pings by instantiating them #3002

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Conversation

badboy
Copy link
Member

@badboy badboy commented Nov 18, 2024

No description provided.

This is in preparation of the further changes coming to how we handle
pings.
@badboy badboy requested a review from a team as a code owner November 18, 2024 14:47
@badboy badboy requested review from chutten and removed request for a team November 18, 2024 14:47
@badboy badboy force-pushed the register-ALL-the-pings branch from 4a675fc to b779e48 Compare November 18, 2024 14:48
@badboy badboy requested a review from travis79 November 18, 2024 14:48
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.54%. Comparing base (00ce5bd) to head (b779e48).

Additional details and impacted files
@@                  Coverage Diff                   @@
##           concistent-ping-names    #3002   +/-   ##
======================================================
  Coverage                  29.54%   29.54%           
======================================================
  Files                          1        1           
  Lines                         44       44           
======================================================
  Hits                          13       13           
  Misses                        31       31           

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

Copy link
Contributor

@chutten chutten left a comment

Choose a reason for hiding this comment

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

Any reason you went for "build and ref the ping" as the design instead of "create a test-only method for adding ping names to the registry"?

@badboy
Copy link
Member Author

badboy commented Nov 18, 2024

Any reason you went for "build and ref the ping" as the design instead of "create a test-only method for adding ping names to the registry"?

easy copy-pasta I guess.
It does mean I need to touch all these places again when I later add another flag. Let me see if maybe I can refactor that into a method instead.

@badboy badboy force-pushed the register-ALL-the-pings branch from b779e48 to ef38f09 Compare November 19, 2024 11:42
@badboy
Copy link
Member Author

badboy commented Nov 19, 2024

Any reason you went for "build and ref the ping" as the design instead of "create a test-only method for adding ping names to the registry"?

I updated it and actually moved a bit of duplication into the setup function for the RLB tests.
I'm keeping the instantiation in the examples, because they are ... well, examples. So they are closer to real code.
I also file a bug that we should expose a "register all pings" function in the generated code, so that no one has to ever manually do the _ = &*... dance.

Base automatically changed from concistent-ping-names to main November 19, 2024 11:45
@badboy badboy enabled auto-merge (rebase) November 19, 2024 11:45
@badboy badboy merged commit e0d62dd into main Nov 19, 2024
29 of 30 checks passed
@badboy badboy deleted the register-ALL-the-pings branch November 19, 2024 11:54
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.

2 participants