Skip to content

feat: canonical domain String() with root-aware Describe() - #1236

Merged
favonia merged 5 commits into
mainfrom
string-describe-convention
Jun 24, 2026
Merged

feat: canonical domain String() with root-aware Describe()#1236
favonia merged 5 commits into
mainfrom
string-describe-convention

Conversation

@favonia

@favonia favonia commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Gives domain.Domain a canonical, round-trippable String() (the root domain renders as ".") and reframes Describe() as the human form that adds an annotation only where it helps (the root renders as ". (root)"), with Wildcard.Describe() equalling its String(). The domainexp.ParseList rejection path now quotes String() instead of Describe(), so rejecting DOMAINS=. reports the offending value as "." rather than an empty quote; all other human-summary Describe() callers are unchanged.

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.42%. Comparing base (f9a782e) to head (7dce83f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1236   +/-   ##
=======================================
  Coverage   98.42%   98.42%           
=======================================
  Files          96       96           
  Lines        5826     5834    +8     
=======================================
+ Hits         5734     5742    +8     
  Misses         79       79           
  Partials       13       13           
Flag Coverage Δ
smoketests 11.70% <0.00%> (-0.02%) ⬇️
unittests 98.01% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

favonia added 5 commits June 24, 2026 09:47
Add String() to FQDN (root → "."), update Describe() to annotate root
as ". (root)", add String() to Domain interface, and add a minimal
String() to Wildcard to satisfy the interface.
Match the comment to the plan's intended wording and fix a typo.
@favonia
favonia force-pushed the string-describe-convention branch from 9faf430 to 7dce83f Compare June 24, 2026 14:47
@favonia
favonia enabled auto-merge (squash) June 24, 2026 14:47
@favonia
favonia merged commit efd115a into main Jun 24, 2026
35 checks passed
@favonia
favonia deleted the string-describe-convention branch June 24, 2026 14:51
@favonia

favonia commented Jun 24, 2026

Copy link
Copy Markdown
Owner Author

Note: feat: was inaccurate. This was probably a refactor:, with a small diagnostic fix:.

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