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

gookit / validate / 41053882509
91%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2026 12:14PM UTC
Jobs 6
Files 31
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

30 Oct 2026 12:14PM UTC coverage: 90.844% (-0.08%) from 90.928%
41053882509

push

github

inhere
fix(validate): run the file rules on a struct or map source

fileValidate required the data source to be a *FormData:

	form, ok := v.data.(*FormData)
	if !ok {
		return statusFail
	}

so isFile/isImage/inMimeTypes failed for every struct or map field, no
matter what the field held: the same upload passed through
validate.Request(r) and failed through validate.New(&form{File: fh}) with
"File value must be an image".

A non-FormData source now looks the field value up and, when it is a
*multipart.FileHeader (or a slice of them), wraps it in a temporary
FormData, so the three rules keep a single code path. A field that is not
an uploaded file keeps failing as before, and an empty field follows
skipEmpty. MIME types are still sniffed from the file content.

The READMEs now say the rules accept a *multipart.FileHeader field too.

29 of 36 new or added lines in 1 file covered. (80.56%)

4326 of 4762 relevant lines covered (90.84%)

5.96 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
81.97
-0.13% validating.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.25 - 41053882509.1 30 Oct 2026 12:14PM UTC 31
87.93
GitHub Action Run
2 Go-1.22 - 41053882509.2 30 Oct 2026 12:15PM UTC 31
89.53
GitHub Action Run
3 Go-stable - 41053882509.3 30 Oct 2026 12:15PM UTC 31
87.35
GitHub Action Run
4 Go-1.23 - 41053882509.4 30 Oct 2026 12:14PM UTC 31
89.53
GitHub Action Run
5 Go-1.21 - 41053882509.5 30 Oct 2026 12:15PM UTC 30
89.41
GitHub Action Run
6 Go-1.24 - 41053882509.6 30 Oct 2026 12:15PM UTC 31
87.93
GitHub Action Run
Source Files on build 41053882509
  • Tree
  • List 31
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5b395904 on github
  • Prev Build on master (#40897899071)
  • Next Build on master (#41282696378)
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