Skip to content

Conversation

@ToastCheng
Copy link
Contributor

The PR fixes the md files' snippet errors under docs/google by adding test substitution and MagicMock, also fixing some outdated APIs. On the test side, adding necessary imports for cirq_google to let the tests being able to find necessary variables.

1. Use test substitution to replace undefined variables
2. Use test substitution to replace cloud APIs with mock class
3. Fix EngineJob constructor

Partially fix quantumlib#7787.
1. Use test substitution to replace undefined variables
2. Use test substitution to replace cloud APIs with mock class
3. Fix unexpected indent and import

Partially fix quantumlib#7787.
1. Use test substitution to replace undefined variables
2. Use test substitution to replace cloud APIs with mock class
3. Fix outdated import paths

Partially fix quantumlib#7787.
@github-actions github-actions bot added the size: M 50< lines changed <250 label Dec 13, 2025
@codecov
Copy link

codecov bot commented Dec 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.57%. Comparing base (9e2123d) to head (e207a60).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7803      +/-   ##
==========================================
- Coverage   99.57%   99.57%   -0.01%     
==========================================
  Files        1102     1102              
  Lines       98529    98641     +112     
==========================================
+ Hits        98109    98220     +111     
- Misses        420      421       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Add all md files under docs/google to run the snippets_test, also add
necessary import (like cirq_google).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant