[test] Move impl_or_verify! tests to doctests#2988
[test] Move impl_or_verify! tests to doctests#2988joshlf wants to merge 1 commit intoG413a86267ff4384a9806de9a784407f1f5be96aafrom
impl_or_verify! tests to doctests#2988Conversation
Summary of ChangesHello @joshlf, 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 streamlines the testing infrastructure for the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
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 is a nice simplification of the test suite. It moves the tests for the impl_or_verify! macro from fragile trybuild UI tests into much simpler doctests. This refactoring correctly preserves the test's intent—ensuring that the macro fails to compile when trait bounds are missing—while significantly improving maintainability by removing the need for toolchain-specific test files. The changes are well-executed and I have no concerns.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## G413a86267ff4384a9806de9a784407f1f5be96aa #2988 +/- ##
==========================================================================
Coverage 91.87% 91.87%
==========================================================================
Files 20 20
Lines 6057 6057
==========================================================================
Hits 5565 5565
Misses 492 492 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
They require a lot of fragile machinery as UI tests, and are much simpler as doc tests. gherrit-pr-id: G793f61a136b912fbd5ee4315cdea7cf3cf3cf8fb
7e5f696 to
e5c4b11
Compare
They require a lot of fragile machinery as UI tests, and are much
simpler as doc tests.
impl_or_verify!tests todoctests#2988RUSTDOCFLAGS#2987Latest Update: v2 — Compare vs v1
📚 Full Patch History
Links show the diff between the row version and the column version.
⬇️ Download this PR
Branch
git fetch origin refs/heads/G793f61a136b912fbd5ee4315cdea7cf3cf3cf8fb && git checkout -b pr-G793f61a136b912fbd5ee4315cdea7cf3cf3cf8fb FETCH_HEADCheckout
git fetch origin refs/heads/G793f61a136b912fbd5ee4315cdea7cf3cf3cf8fb && git checkout FETCH_HEADCherry Pick
git fetch origin refs/heads/G793f61a136b912fbd5ee4315cdea7cf3cf3cf8fb && git cherry-pick FETCH_HEADPull
Stacked PRs enabled by GHerrit.