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

steinfletcher / apitest
100%

Build:
DEFAULT BRANCH: master
Repo Added 30 Jan 2019 09:34PM UTC
Files 17
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • coverage-100
  • coverage-badge
  • feature/add-more-mock-debug
  • feature/add_cookie_response_matcher
  • feature/assert
  • feature/circleci
  • feature/mock-custom-matcher-funcs
  • feature/support-url-host-in-matcher
  • v1.0.0
  • v1.0.0-alpha.10
  • v1.0.0-alpha.11
  • v1.0.0-alpha.12
  • v1.0.0-alpha.13
  • v1.0.0-alpha.8
  • v1.0.0-alpha.9
  • v1.0.1
  • v1.0.10
  • v1.0.11
  • v1.0.12
  • v1.0.3
  • v1.0.4
  • v1.0.6
  • v1.0.7
  • v1.0.8
  • v1.0.9
  • v1.1.0

03 Sep 2026 12:40PM UTC coverage: 99.925% (+13.5%) from 86.406%
33756597152

push

github

web-flow
Raise test coverage (#176)

* Remove error checks that cannot fire and dead code

- createHash checked the error from hash.Hash.Write, which is
  documented never to fail.
- messageFromMsgAndArgs had an unreachable trailing return.
- The sequence diagram template is parsed once at package init and
  executed directly into the output file, and formatBodyContent no
  longer checks errors from json.Indent on JSON that json.Valid
  accepted or from bytes.Buffer.Write, neither of which can fail.
- DumpRequest and DumpResponse cannot fail when the body is not
  dumped, so the log entry builders no longer check them.
- difflib's SetSeq1/SetSeq2 compared the address of a parameter with
  the address of a field, which is never equal.

No behaviour changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Cover the remaining code paths with tests

Adds tests for DefaultVerifier and NoopVerifier, the diff helper,
request builder failure paths (multipart writer and file read errors,
immediate failures once Expect has been called), Result.JSON errors,
mock builders and matchers (BodyRegexp, body and form data error
paths, deep copies, standalone mocks with a client and debug),
transport debug output, recorder hooks, networking and handler
failures, header presence failures, sequence diagram formatting
errors and the OS file system, every x/db driver interface
combination and error path, and difflib's junk handling, autojunk,
writer errors and colour switch.

Coverage: apitest 99.8%, difflib 100%, mocks 100%, x/db 100%. The two
remaining lines are guards in callerInfo for frames the runtime never
reports.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>

25 of 25 new or added lines in 3 files covered. (100.0%)

2652 of 2654 relevant lines covered (99.92%)

76.63 hits per line

Relevant lines Covered
Build:
Build:
2654 RELEVANT LINES 2652 COVERED LINES
76.63 HITS PER LINE
Source Files on master
  • Tree
  • List 17
  • Changed 13
  • Source Changed 4
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
33756597152 master Raise test coverage (#176) * Remove error checks that cannot fire and dead code - createHash checked the error from hash.Hash.Write, which is documented never to fail. - messageFromMsgAndArgs had an unreachable trailing return. - The sequence ... push 03 Sep 2026 12:41PM UTC web-flow github
99.92
33754965890 master Publish test coverage to Coveralls and show a coverage badge (#175) The stable-Go test job uploads the coverage profile that make test already writes. Coveralls' action needs only the workflow's GITHUB_TOKEN and registers the repository on the fi... push 03 Sep 2026 12:24PM UTC web-flow github
86.41
214 master Update README.md push 25 Jul 2022 10:21AM UTC GitHub circle-ci
84.19
212 master Add support multipart/form-data (#119) push 22 May 2022 09:49AM UTC GitHub circle-ci
84.19
208 master Create codeql-analysis.yml push 22 Oct 2021 09:07AM UTC GitHub circle-ci
84.36
206 master Update README.md (#115) push 08 Sep 2021 10:51PM UTC GitHub circle-ci
84.36
204 master fix: Get request should got 200 instead of 201 (#113) push 19 Jul 2021 10:15AM UTC GitHub circle-ci
84.36
202 master Reorder readme docs push 13 Jun 2021 06:56AM UTC Stein Fletcher circle-ci
84.36
200 master Add demo gif to readme push 13 Jun 2021 06:53AM UTC Stein Fletcher circle-ci
84.36
198 master Support defining input as http.Request from std lib push 12 Jun 2021 01:21PM UTC Stein Fletcher circle-ci
84.36
See All Builds (281)
  • Repo on GitHub
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