Skip to content

chore: unit tests for verifyreadmes #7026

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bachgarash
Copy link
Contributor

Closes #6604

Copy link

codecov bot commented Jul 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.8%. Comparing base (291140b) to head (1bb9393).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #7026   +/-   ##
=====================================
  Coverage   82.8%   82.8%           
=====================================
  Files        262     262           
  Lines      24343   24343           
=====================================
+ Hits       20157   20158    +1     
+ Misses      3811    3810    -1     
  Partials     375     375           

see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dmathieu dmathieu added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 15, 2025
t.Run(tc.name, func(t *testing.T) {
path, info := tc.setup(t, tmpDir)
got := verifyReadme(path, info, nil)
if (err != nil) != tc.want {
Copy link
Member

Choose a reason for hiding this comment

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

Could we check the actual error rather than its presence?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit tests for the verify readmes script
2 participants