8000 refactor: remove testify by caarlos0 · Pull Request #54 · caarlos0/log · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: remove testify #54

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 2 commits into from
Jul 3, 2025
Merged

refactor: remove testify #54

merged 2 commits into from
Jul 3, 2025

Conversation

caarlos0
Copy link
Owner
@caarlos0 caarlos0 commented Jul 3, 2025

use only the std lib instead

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 requested a review from Copilot July 3, 2025 20:20
@caarlos0 caarlos0 self-assigned this Jul 3, 2025
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Removes the testify dependency and replaces require assertions with standard library testing calls.

  • Replaced require.* calls in tests with if checks and t.Fatalf
  • Removed github.com/stretchr/testify (and other unused test deps) from go.mod
  • Updated test imports to drop require

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
levels_test.go Replaced require.NoError/Equal with manual if+t.Fatalf
entry_test.go Swapped out require calls for standard testing checks
context_test.go Removed require, updated to use if+t.Fatalf
go.mod Dropped testify and other indirect test-related modules
Comments suppressed due to low confidence (1)

context_test.go:11

  • The test uses context.Background() but the context package isn't imported, causing a compilation error. Please add import "context".
	ctx := context.Background()

Copy link
codecov bot commented Jul 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.83%. Comparing base (2236452) to head (1af7785).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #54   +/-   ##
=======================================
  Coverage   79.83%   79.83%           
=======================================
  Files           6        6           
  Lines         238      238           
=======================================
  Hits          190      190           
  Misses         44       44           
  Partials        4        4           

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

@caarlos0 caarlos0 merged commit 42017cd into main Jul 3, 2025
10 checks passed
@caarlos0 caarlos0 deleted the testify branch July 3, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0