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

Medzoner / medzoner-go / 24961127485
75%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2026 04:16PM UTC
Jobs 1
Files 25
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

26 Apr 2026 04:12PM UTC coverage: 64.729% (-0.3%) from 64.981%
24961127485

push

travis-ci

web-flow
Feat/refacto (#218)

* docs: add conventional commits skill for Claude

* test(mock): add mocks for Templater, Captcher and Validater interfaces

* test: add unit tests for handler, repository, config, entity, http_utils and database
Cover 8 previously untested packages:
- handler: IndexHandler (GET/POST, captcha, validation, render errors)
- handler: NotFoundHandler (404, render error)
- repository: MysqlContactRepository (save, begin/prepare/exec/commit errors)
- repository: TechnoJSONRepository (success, file not found, invalid JSON)
- config: NewConfig with env vars
- entity: Contact.Get()
- http_utils: ResponseError (500, 400, 404)
- database: DbMigration (driver errors, invalid action)
Add go-sqlmock dependency for MySQL repository tests.

* fix(handler): return 400 status on validation error in POST handler
The WriteHeader call was gated by view.FormMessage which is always
empty, so validation errors returned 200 instead of 400.

* test(godog): reactivate BDD integration tests
- Replace disabled flag with GODOG_INTEGRATION=1 env guard
- Rewrite featurecontext to use real HTTP client requests
- Start server in background goroutine on dedicated test port
- Wait for /healthz/live before running scenarios
- Fix feature expectations to match actual routes and behavior
- 6 scenarios, 20 steps all passing

* test(godog): add scenarios to improve integration test coverage
- Add body and header assertion steps to featurecontext
- Add GET with TOR-HOST header scenario
- Add POST with submit param scenario (skip processing path)
- Add POST validation error body check
- Add POST redirect location header check
- Add second 404 route scenario
- Add infra.feature: liveness, readiness, robots.txt, CSS static

* test: increase unit test coverage to 74.4%
- event: add empty UUID error case
- handler: add Prefix, captcha confirm false, POST with submit tests
- templater: add ExecuteTemplate failure case
- database: add nil driver instantiation case
- customtype: ... (continued)

0 of 3 new or added lines in 1 file covered. (0.0%)

501 of 774 relevant lines covered (64.73%)

4.14 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
66.67
-33.33% internal/entity/contact_entity.go
Jobs
ID Job ID Ran Files Coverage
1 24961127485.1 26 Apr 2026 04:16PM UTC 25
64.73
Travis Job
Source Files on build 24961127485
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c34022cb on github
  • Prev Build on master (#24384157843)
  • Next Build on master (#25872233007)
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