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

Medzoner / medzoner-go / 24384157843
75%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2026 06:23AM 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

14 Apr 2026 06:19AM UTC coverage: 64.981% (+39.1%) from 25.843%
24384157843

push

travis-ci

web-flow
Feat/refacto (#216)

* 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)

176 of 285 new or added lines in 14 files covered. (61.75%)

7 existing lines in 2 files now uncovered.

501 of 771 relevant lines covered (64.98%)

4.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
90
0.0
0.0% test/features/bootstrap/featurecontext.go
10
74.36
test/mocks/captcher.go
3
82.61
82.61% internal/domain/repository/techno_json.go
2
91.3
3.8% internal/application/event/contact_created_event_handler.go
2
95.35
internal/domain/customtype/null_string.go
2
95.56
95.56% internal/domain/repository/contact_mysql.go

Coverage Regressions

Lines Coverage ∆ File
6
0.0
0.0% test/features/bootstrap/featurecontext.go
1
82.61
82.61% internal/domain/repository/techno_json.go
Jobs
ID Job ID Ran Files Coverage
1 24384157843.1 14 Apr 2026 06:23AM UTC 25
64.98
Travis Job
Source Files on build 24384157843
  • Tree
  • List 25
  • Changed 13
  • Source Changed 0
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cdf49ecd on github
  • Prev Build on master (#24365267699)
  • Next Build on master (#24961127485)
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