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

enetx / g / 12857483605
84%
main: 91%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.0.225
DEFAULT BRANCH: main
Ran 19 Jan 2025 09:54PM UTC
Jobs 1
Files 42
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

19 Jan 2025 09:50PM UTC coverage: 84.039% (+0.2%) from 83.888%
12857483605

push

github

enetx
Refactor: Introduced new Sprintf formatter with enhanced placeholder logic

- Rewrote `Sprintf` to support an advanced formatting system.
- Improved placeholder parsing:
  - Added support for mixed auto-indexed `{}` and explicit numeric `{n}` placeholders.
  - Enhanced fallback behavior for named placeholders `{key?fallback}`.
  - Added chaining for complex modifiers like `{key.$trim.$replace(a,b).$upper}`.
- Introduced escape sequences for `{}` to print literal curly braces (`\{` and `\}`).
- Updated logic to synchronize auto-indexing with explicit numeric placeholders.
- Extended modifier support, including `$substring`, `$truncate`, `$round`, `$abs`, `$reverse`, and more.
- Improved robustness to handle edge cases and invalid placeholders gracefully.
- Updated tests to include:
  - Comprehensive scenarios for modifiers, fallback, and chained logic.
  - Edge cases like missing keys, unsupported modifiers, and malformed input.
- Enhanced documentation for `Sprintf`, highlighting new features, examples, and usage tips.

This refactor significantly improves the flexibility and usability of the formatting logic, making it more powerful and extensible.

59 of 79 new or added lines in 6 files covered. (74.68%)

3475 of 4135 relevant lines covered (84.04%)

120.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
53.73
print.go
Jobs
ID Job ID Ran Files Coverage
1 12857483605.1 19 Jan 2025 09:54PM UTC 42
84.04
GitHub Action Run
Source Files on build 12857483605
  • Tree
  • List 42
  • Changed 17
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7630777a on github
  • Prev Build on refs/tags/v1.0.129 (#12854511800)
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