Skip to content

Enforce testify/assert for tests#366

Merged
JoTurk merged 1 commit intopion:masterfrom
RyanPotat:lint/test-helpers
Mar 22, 2025
Merged

Enforce testify/assert for tests#366
JoTurk merged 1 commit intopion:masterfrom
RyanPotat:lint/test-helpers

Conversation

@RyanPotat
Copy link
Copy Markdown
Member

Description

Use testify/assert in place of the standard testing package, and update where applicable to use assert.NoError

pion/.goassets/pull/222

Reference issue

N/A

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.84%. Comparing base (bf53986) to head (24efa50).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #366      +/-   ##
==========================================
- Coverage   81.95%   81.84%   -0.12%     
==========================================
  Files          51       51              
  Lines        4539     4539              
==========================================
- Hits         3720     3715       -5     
- Misses        677      680       +3     
- Partials      142      144       +2     
Flag Coverage Δ
go 81.84% <ø> (-0.12%) ⬇️
wasm 67.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@JoTurk
Copy link
Copy Markdown
Member

JoTurk commented Mar 22, 2025

Thank you so much ryan <3

Copy link
Copy Markdown
Member

@JoTurk JoTurk left a comment

Choose a reason for hiding this comment

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

This is great! Thank you so much, Ryan, for your help with this. Just a few minor issues: it replaces t.Errorf with assert.Error, but it should use assert.ErrorF for formatted messages

@RyanPotat RyanPotat force-pushed the lint/test-helpers branch 2 times, most recently from 1364d5e to 5690def Compare March 22, 2025 08:11
@RyanPotat
Copy link
Copy Markdown
Member Author

@joeturki I made all your corrections, and found a few more as well. 👍

Copy link
Copy Markdown
Member

@JoTurk JoTurk left a comment

Choose a reason for hiding this comment

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

sorry last few

@RyanPotat
Copy link
Copy Markdown
Member Author

@joeturki Fixed! 😎

@JoTurk
Copy link
Copy Markdown
Member

JoTurk commented Mar 22, 2025

Thank you Ryan

@JoTurk JoTurk merged commit 24efa50 into pion:master Mar 22, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants