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

rschmied / gocmlclient / 23785664992
93%

Build:
DEFAULT BRANCH: main
Ran 31 Mar 2026 07:29AM UTC
Jobs 1
Files 41
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

31 Mar 2026 07:27AM UTC coverage: 92.885% (+0.005%) from 92.88%
23785664992

push

github

web-flow
feat(client): support static request headers and expand examples (#14)

* (fix) link in README.md

* feat(examples): add runnable examples and tests for gocmlclient

- introduce examples for auth-token, auth-userpass, labs-list,
  errors-is, annotations-line-null in `examples/`
- implement example tests in `example_test.go` and
  `pkg/client/example_test.go`
- re-export `client.Option` and common option funcs/vars in
  `gocmlclient.go`
- update `README.md` with example pointers and UUID usage
- minor formatting adjustments and alias imports in `cmd/dtest/main.go`

* (feat) add unti tests for new client header options

- WithRequestHeader() and WithRequestHeaders()
- currently only tests exist

* feat(client): add static request header support

- Introduced WithRequestHeader and WithRequestHeaders options for client configuration
- Enabled passing static headers (e.g., proxy tokens) on all outbound HTTP requests
- Added example for proxy authorization header to README and new sample main.go
- Implemented header injection via NewHeaderTransport in internal/httputil
- Included header validation and related unit tests
- Integrated header injection into API client initialization
- Updated documentation with usage and detailed explanations

* (chore) update CHANGELOG

* (ci) exclude examples from coverage

56 of 58 new or added lines in 3 files covered. (96.55%)

2 existing lines in 1 file now uncovered.

2663 of 2867 relevant lines covered (92.88%)

87.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
96.3
-3.7% internal/httputil/headers.go

Coverage Regressions

Lines Coverage ∆ File
2
96.67
-1.67% internal/auth/manager.go
Jobs
ID Job ID Ran Files Coverage
1 23785664992.1 31 Mar 2026 07:29AM UTC 41
92.88
GitHub Action Run
Source Files on build 23785664992
  • Tree
  • List 41
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3a075566 on github
  • Prev Build on main (#23246464380)
  • Next Build on main (#23794122395)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc