Skip to content

Add universal result builder#273

Merged
vsanthanam merged 3 commits intomainfrom
vsanthanam/universal-builder
Nov 15, 2025
Merged

Add universal result builder#273
vsanthanam merged 3 commits intomainfrom
vsanthanam/universal-builder

Conversation

@vsanthanam
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +33 to +47
let array = JSON.build {
"12"
"nast"
1.2
23
nil
{
"key" => nil
}
}

let object = JSON.build {
"string" => 12
"plop" => [nil, 12, "asd"]
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove call to nonexistent JSON.build

This test file invokes JSON.build { … } twice, but the commit only added the JSON.Builder result-builder type and a couple of => helpers. Neither the existing JSON type nor the new extension define a static build factory, so JSON has no member named build and the module will not compile (Swift errors out before any tests run). Either add the missing API that wraps @JSON.Builder or call one of the existing initializers (e.g. JSON { … } or JSON(fields:)).

Useful? React with 👍 / 👎.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 15, 2025

Codecov Report

❌ Patch coverage is 95.58824% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.90%. Comparing base (9b0e8c2) to head (6a0bc88).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/JBirdBuilders/Builder.swift 94.54% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #273   +/-   ##
=======================================
  Coverage   93.89%   93.90%           
=======================================
  Files          24       25    +1     
  Lines        1819     1870   +51     
=======================================
+ Hits         1708     1756   +48     
- Misses        111      114    +3     
Flag Coverage Δ
llvm-cov 93.90% <95.58%> (+<0.01%) ⬆️
swiftpm 93.90% <95.58%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@vsanthanam vsanthanam merged commit 8a6d1ec into main Nov 15, 2025
52 checks passed
@vsanthanam vsanthanam deleted the vsanthanam/universal-builder branch November 15, 2025 19:58
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