Fixed tests for evaluator#43
Conversation
Signed-off-by: Marcin Olko <molko@google.com>
Summary of ChangesHello @m-olko, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses several test failures that emerged after the integration of the flag evaluator and flag configuration validator features. The changes primarily involve refining the flag evaluation logic to correctly handle missing configurations and updating test utilities to reflect current data structures, thereby restoring the integrity of the test suite. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses broken tests for the evaluator by introducing a few necessary fixes. The change in evaluator.cpp correctly inverts a condition to handle cases where flags are not available. The test suite is also updated to align with the validation logic and to correct an assertion. The suggestion to enhance a test by updating an error message check rather than removing it has been retained, as it aligns with best practices for robust testing.
Signed-off-by: Marcin Olko <molko@google.com>
This PR
Due to evaluator and flag configuration validator were developed on different branches without any conflicts, the tests broke when both got merged to main. This PR contains minor fixes for them to work correctly.
How to test