Skip to content

Change cmg -testify flag to use assert.TestingT#639

Merged
douglaswth merged 1 commit intomainfrom
cmg-testify-testingt
Jan 26, 2026
Merged

Change cmg -testify flag to use assert.TestingT#639
douglaswth merged 1 commit intomainfrom
cmg-testify-testingt

Conversation

@douglaswth
Copy link
Copy Markdown
Member

When the -testify flag is used, mock constructors now accept assert.TestingT instead of *testing.T, providing better flexibility for testing with custom test harnesses.

Also update the minimum Go version requirement from 1.21 to 1.24 in GitHub Actions workflows and README.

When the -testify flag is used, mock constructors now accept
assert.TestingT instead of *testing.T, providing better flexibility
for testing with custom test harnesses.

Also update the minimum Go version requirement from 1.21 to 1.24
in GitHub Actions workflows and README.
@douglaswth douglaswth requested a review from raphael January 23, 2026 21:28
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.95%. Comparing base (5d8a639) to head (745d1db).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #639      +/-   ##
==========================================
+ Coverage   86.94%   86.95%   +0.01%     
==========================================
  Files          39       39              
  Lines        2007     2009       +2     
==========================================
+ Hits         1745     1747       +2     
  Misses        238      238              
  Partials       24       24              
Flag Coverage Δ
micro 86.95% <100.00%> (+0.01%) ⬆️

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.

{{ if .Alias }}{{ .Alias }} {{ end }}"{{ .PkgPath }}"
{{- end }}
{{ range .ExtImports }}
{{- if and (gt (len .StdImports) 0) (or (gt (len .ExtImports) 0) (gt (len .IntImports) 0)) }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oof. I am so not a fan of go templates!

I don't mind lisp. But lisp in go is ponderous!

@douglaswth douglaswth merged commit 99feafe into main Jan 26, 2026
7 checks passed
@douglaswth douglaswth deleted the cmg-testify-testingt branch January 26, 2026 18:24
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.

3 participants