Skip to content

feat(echo): validate the requests of echo - #67

Merged
Insei merged 3 commits into
mainfrom
feat/echo
Oct 19, 2026
Merged

Insei merged 3 commits into
mainfrom
feat/echo

Conversation

@Insei

@Insei Insei commented Oct 19, 2026

Copy link
Copy Markdown
Owner

The module github.com/insei/valigo/echo: e.Validator = vecho.New(v) makes c.Validate validate by valigo, vecho.Validate(c, v, &req) validates with the languages of Accept-Language; the error is shared.Errors. 100% coverage with a real echo server, the module is added to scripts/modules.sh and dependabot, the new page echo, the README lists the three integrations.

Insei added 3 commits October 19, 2026 10:57
The module github.com/insei/valigo/echo: New is the echo.Validator, so
c.Validate validates by valigo; Validate validates with the languages of
the Accept-Language header of the request.
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark diff: 4402219 → c7f08df (10 runs)

goos: linux
goarch: amd64
pkg: github.com/insei/valigo
cpu: INTEL(R) XEON(R) PLATINUM 8573C
           │  base.txt   │           head.txt            │
           │   sec/op    │   sec/op     vs base          │
Validate-4   164.8n ± 0%   164.8n ± 1%  ~ (p=0.446 n=10)

           │  base.txt  │            head.txt            │
           │    B/op    │    B/op     vs base            │
Validate-4   0.000 ± 0%   0.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

           │  base.txt  │            head.txt            │
           │ allocs/op  │ allocs/op   vs base            │
Validate-4   0.000 ± 0%   0.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

@Insei
Insei merged commit bc5cfda into main Oct 19, 2026
6 checks passed
@Insei
Insei deleted the feat/echo branch October 19, 2026 08:00
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4402219) to head (85e6db2).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #67   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           34        35    +1     
  Lines         1085      1093    +8     
=========================================
+ Hits          1085      1093    +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants