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

pgconfig / api / 21739436746
59%
master: 79%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/setup-go-6
DEFAULT BRANCH: master
Ran 06 Feb 2026 05:07AM UTC
Jobs 1
Files 36
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

06 Feb 2026 05:06AM UTC coverage: 58.769% (+2.6%) from 56.207%
21739436746

push

github

sebastianwebber
fix: normalize environment_name to uppercase in api

Fix case sensitivity bug where API returns zero memory values when
environment_name parameter uses mixed case (e.g., "Mixed" instead of
"MIXED"). Profile lookups in memory configuration maps require
uppercase keys, but API was doing direct type cast without validation.

This caused all memory parameters (shared_buffers, effective_cache_size,
work_mem, maintenance_work_mem) to return 0 when map lookups failed.

Add profile.Parse() function to centralize parsing logic and ensure
case-insensitive matching through existing Set() normalization.

Fixes #37

Signed-off-by: Sebastian Webber <sebastian@swebber.me>

7 of 11 new or added lines in 2 files covered. (63.64%)

697 of 1186 relevant lines covered (58.77%)

20.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
32.81
24.75% cmd/api/handlers/v1/config.go
2
90.91
-9.09% pkg/input/profile/profile.go
Jobs
ID Job ID Ran Files Coverage
1 21739436746.1 06 Feb 2026 05:07AM UTC 36
58.77
GitHub Action Run
Source Files on build 21739436746
  • Tree
  • List 36
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ab639505 on github
  • Prev Build on main (#21739129482)
  • Next Build on main (#21740248535)
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