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

Oudwins / zog / 19015784300
79%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2025 05:35PM UTC
Jobs 1
Files 33
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

02 Nov 2025 05:34PM UTC coverage: 86.514% (+0.04%) from 86.472%
19015784300

push

github

web-flow
feat: add IPv4 validator for strings (#192)

* feat: add IPv4 validator for strings

- Added IPv4() method to StringSchema in string.go
- Added ErrCodeIPv4 constant in zconst/zconst.go
- Added default error message in i18n/en/en.go
- Added comprehensive tests in string_validate_test.go and string_test.go
- Updated documentation in docs/reference.md

The validator uses net.ParseIP() and To4() to ensure the address
is a valid IPv4 format and not IPv6.

* feat: add IPv4 method to NotStringSchema interface

* feat(i18n): add error message for invalid IPv4 address

* refactor(i18n): remove IPv4 message from language map

Co-authored-by: Tristan M. <54208010+Oudwins@users.noreply.github.com>

* refactor: remove IPv4 method from NotStringSchema interface

Co-authored-by: Tristan M. <54208010+Oudwins@users.noreply.github.com>

* refactor: update IPv4 references to a more generic IP format in error messages and validation

* fix: improve IPv4 validation to check for colon characters

Co-authored-by: Tristan M. <54208010+Oudwins@users.noreply.github.com>

* test: add regression tests for IPv6-mapped IPv4 addresses

---------

Co-authored-by: Tristan M. <54208010+Oudwins@users.noreply.github.com>

8 of 8 new or added lines in 1 file covered. (100.0%)

2194 of 2536 relevant lines covered (86.51%)

58.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19015784300.1 02 Nov 2025 05:35PM UTC 33
86.51
GitHub Action Run
Source Files on build 19015784300
  • Tree
  • List 33
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3a649366 on github
  • Prev Build on master (#18595643499)
  • Next Build on master (#19015827369)
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