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

cybertec-postgresql / vip-manager / 29824043050
58%

Build:
DEFAULT BRANCH: master
Ran 21 Jul 2026 10:55AM UTC
Jobs 1
Files 11
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

21 Jul 2026 10:54AM UTC coverage: 57.737% (+7.8%) from 49.947%
29824043050

push

github

web-flow
[+] add tests for `checker`, `vipconfig`, and `main` packages (#381)

* Improve test coverage: add comprehensive tests for checker, ipmanager, and vipconfig packages

- Add tests for getMask IPv4/IPv6 CIDR mask calculation
- Add tests for applyLoop and SyncStates with mock configurer
- Test IPv6 address support and different hosting types
- Add timeout test for Patroni checker
- Add NewConfig public API test with os.Args integration
- Improve error path coverage in ipmanager and vipconfig
- Current coverage: 51.0% (up from 46.4%)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Further improve test coverage to 52%: Add comprehensive edge case tests

- Add TestGetMask IPv4 out-of-range tests
- Add TestApplyLoop error scenarios (configure failure, query fails)
- Add TestApplyLoop_NoChangeNeeded test
- Add TestApplyLoop_DeconfigureWhenNeeded test
- Add TestGetNetIface_Success test with fallback logic
- Achieve 100% coverage for getMask, applyLoop, and SyncStates
- Overall coverage: 52.0% (up from 51.0%)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add main package tests for version flag handling

- Add TestVersionFlagHandling to test version flag detection logic
- Add TestVersionFlagOutput to verify version output format
- Test multiple arg combinations for version flag presence
- Provides foundation for testing CLI argument handling

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix TestNewIPManager_Hetzner test expectation

The test was expecting an error during Hetzner configurer creation,
but the function doesn't validate config at initialization time. The
error now correctly occurs from the loopback interface validation.

* Fix TestNewIPManager_Hetzner nil pointer dereference

Added early return after error check to prevent calling err.Error()
on a nil error value, which caused a panic in GHA.

* Fix TestNewIPManager_Hetzner to use nonexistent interface

The test was using... (continued)

541 of 937 relevant lines covered (57.74%)

0.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29824043050.1 21 Jul 2026 10:55AM UTC 11
57.74
GitHub Action Run
Source Files on build 29824043050
  • Tree
  • List 11
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29824043050
  • e8227964 on github
  • Prev Build on master (#29823306076)
  • Next Build on master (#29832897955)
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