Skip to content

chore: add community files, badges, and drop testify for stdlib tests - #5

Merged
christiangda merged 1 commit into
mainfrom
chore/community-files-and-stdlib-tests
Jul 11, 2026
Merged

chore: add community files, badges, and drop testify for stdlib tests#5
christiangda merged 1 commit into
mainfrom
chore/community-files-and-stdlib-tests

Conversation

@christiangda

Copy link
Copy Markdown
Contributor

Summary

Rounds out the repository for public open-source use (mirroring the conventions in slashdevops/httpx) and removes the testify test dependency.

README badges

Added Go version, license, Release, and CodeQL badges alongside the existing Go Reference badge. Go Report Card is intentionally not added — that service has been retired.

New repository files

  • SECURITY.md — CodeQL scanning + vulnerability reporting process.
  • .github/FUNDING.yml — sponsorship links.
  • .github/dependabot.yml — weekly updates for gomod and github-actions.
  • .github/release.yml — auto-generated release notes categories.
  • .golangci.yaml — linter configuration.
  • .github/workflows/codeql.yml — CodeQL Advanced code scanning.

Drop testify → standard library testing (Go 1.25)

  • Replaced assert/require with plain t.Error/t.Fatal checks.
  • Replaced assert.Eventually with a small local eventually() poll helper.
  • Used maps.Equal for map comparison.
  • go.mod now has a single direct dependency (golang.org/x/time); all testify-related indirect deps are gone.

Verification

go test -race ./...   # ok
go vet ./...          # clean
go mod tidy           # no testify remaining

🤖 Generated with Claude Code

Round out the repository for public open-source use, mirroring the
conventions in slashdevops/httpx:

- README: add Go version, license, Release, and CodeQL badges. Keep the
  Go Reference badge; Go Report Card is intentionally omitted (the
  service has been retired).
- Add SECURITY.md documenting the CodeQL scanning and vulnerability
  reporting process.
- Add .github/FUNDING.yml, .github/dependabot.yml (gomod + github-actions),
  and .github/release.yml for auto-generated release notes.
- Add .golangci.yaml linter configuration.
- Add .github/workflows/codeql.yml (CodeQL Advanced) for code scanning.

Also drop the github.com/stretchr/testify dependency and rewrite the
tests using only the standard library testing package (Go 1.25):
- Replace assert/require with plain t.Error/t.Fatal checks.
- Replace assert.Eventually with a small local eventually() poll helper.
- Use maps.Equal for map comparison.
go.mod now has a single direct dependency (golang.org/x/time).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@christiangda christiangda self-assigned this Jul 11, 2026
@christiangda
christiangda merged commit d1a88bd into main Jul 11, 2026
3 checks passed
@christiangda
christiangda deleted the chore/community-files-and-stdlib-tests branch July 11, 2026 13:04
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

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