Skip to content

test: add negative tests for rapl power meter #2012

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

vprashar2929
Copy link
Collaborator

This commit adds some negative tests for rapl_sysfs power meter Test include:

  • Test that invalid sysfs path results in an error
  • Test that error from reader are handled properly
  • Test in case of no RAPL zones are found
  • Test that Start returns error when no zones are found

This commit adds some negative tests for rapl_sysfs power meter
Test include:
- Test that invalid sysfs path results in an error
- Test that error from reader are handled properly
- Test in case of no RAPL zones are found
- Test that Start returns error when no zones are found

Signed-off-by: vprashar2929 <vibhu.sharma2929@gmail.com>
Copy link

codecov bot commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.95%. Comparing base (71a13b8) to head (d44e6df).
Report is 2 commits behind head on reboot.

Additional details and impacted files
@@            Coverage Diff             @@
##           reboot    #2012      +/-   ##
==========================================
+ Coverage   91.30%   91.95%   +0.65%     
==========================================
  Files          16       16              
  Lines         920      920              
==========================================
+ Hits          840      846       +6     
+ Misses         62       58       -4     
+ Partials       18       16       -2     

☔ 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.

@vprashar2929 vprashar2929 added the test Adding or updating tests label Apr 16, 2025
@sthaha sthaha merged commit e2d137e into sustainable-computing-io:reboot Apr 16, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Adding or updating tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants