• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mindersec / minder / 41526093944
67%

Build:
DEFAULT BRANCH: main
Ran 02 Nov 2026 09:22PM UTC
Jobs 1
Files 359
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2026 09:11PM UTC coverage: 65.741% (+0.3%) from 65.414%
41526093944

push

github

web-flow
test(github): add unit tests for GitHub provider manager methods (#7057)

* test(github): add unit tests for GitHub provider manager methods

Adds comprehensive unit test coverage for the GitHub provider manager in internal/providers/github/manager/:
- TestNewGitHubProviderClassManager: validates initialization of provider class manager
- TestGetSupportedClasses: asserts supported classes (ProviderClassGithubApp, ProviderClassGithub)
- TestGetProviderClassInfo: tests valid class returns and error paths for unsupported classes
- TestNewOAuthConfig: tests web flow, cli flow, GitHub App config, endpoint overrides, missing client ID/secret file errors, and unsupported classes
- TestMarshallConfig: tests valid marshaling for oauth and app configs, malformed JSON inputs, and unsupported classes
- TestValidateCredentials: tests non-OAuth credential rejection, empty remote user skip, successful token identity verification, and verification failure returns
- TestBuild_ValidationErrors: tests unsupported class and version errors
- TestBuild_OAuthAndAppFlows: tests client construction for OAuth (with cache check, missing token, fallback legacy token, decryption failure, and no secret error) and GitHub App (successful build with private key, empty credential on missing installation, and installation lookup failure)
- TestDelete: tests credential state unset (installation-only deletion), credential lookup error, entity deregistration flow with client, and installation deletion error
- TestGetWebhookHandler: asserts non-nil webhook handler construction

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

* test(github): fix linter issues in manager unit tests

Add t.Helper() calls to test helper functions (thelper) and use t.Cleanup instead of defer for gomock controller cleanup (tparallel).

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

---------

Signed-off-by: Ravindra Kumar Bundela <ravindrabundela1205@gmail.com>

23317 of 35468 relevant lines covered (65.74%)

58.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41526093944.1 02 Nov 2026 09:22PM UTC 359
65.74
GitHub Action Run
Source Files on build 41526093944
  • Tree
  • List 359
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41526093944
  • 203d647f on github
  • Prev Build on main (#41349626190)
  • Next Build on main (#41527193709)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc