Optimize test helper to accept pointer parameter#2034
Conversation
Signed-off-by: Ritesh Giram <riteshgiram9@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR refactors the GRPCRoute rate limit test to optimise the ChangesHelper function pointer refactor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What problem does this PR solve?
Closes #1891
The
limitadorLimitsContain()helper accepted alimitadorv1alpha1.Limitadorvalue, causing the entire struct to be copied on each call.What's changed and how does it work?
limitadorLimitsContain()to accept*limitadorv1alpha1.Limitador.Testing
Summary by CodeRabbit
Release Notes