Skip to content

Test markdown helper coverage#34

Merged
ktsaou merged 1 commit into
mainfrom
quality-markdown-helper-coverage
Jun 4, 2026
Merged

Test markdown helper coverage#34
ktsaou merged 1 commit into
mainfrom
quality-markdown-helper-coverage

Conversation

@ktsaou

@ktsaou ktsaou commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Add behavior coverage for Markdown template helper functions and value conversion helpers.
  • Cover numeric formatting, relative-time buckets, status labels/leads, bars, truncation, inline template errors, and template store directory reporting.
  • Keep production code unchanged.

Quality impact

  • pkg/markdown coverage: 70.8% -> 79.3%.
  • Root coverage: 73.8% -> 74.0%.
  • Production large functions remain at 0.

Validation

  • go test ./pkg/markdown
  • go test -count=1 -coverprofile=/tmp/update-ipsets-markdown-slice30.cover -covermode=atomic ./pkg/markdown
  • go run ./tools/archposture -root . > /tmp/update-ipsets-archposture-slice30.json
  • make lint
  • make staticcheck
  • make golangci-lint
  • CI=true make coverage
  • make test-strict
  • git diff --check

@ktsaou ktsaou enabled auto-merge June 4, 2026 07:00
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 49 complexity · 5 duplication

Metric Results
Complexity 49
Duplication 5

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@ktsaou ktsaou merged commit 50beb25 into main Jun 4, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant