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

bamorim / typed_ecto_schema / b1d8c1df6230869c45454c83e257b4bd02335fad-PR-53
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: release/prepare-0-4-3
DEFAULT BRANCH: master
Ran 24 Jun 2025 09:55PM UTC
Jobs 1
Files 5
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

24 Jun 2025 09:54PM UTC coverage: 92.188% (+0.1%) from 92.063%
b1d8c1df6230869c45454c83e257b4bd02335fad-PR-53

Pull #53

github

dvic
Fix issue #52: Handle AST variable opts in macros

Problem: When field options are passed as variables in macro contexts,
they become AST variable references instead of literal keyword lists.
The original code called Keyword.drop/2 directly on opts, which failed
with FunctionClauseError when opts was an AST tuple.

Solution: Check if opts is a compile-time keyword list using
Keyword.keyword?/1. If yes, drop keys at compile time. If no (AST
variable reference), generate code to drop keys at runtime.

Changes:
- Modified TypedEctoSchema.SyntaxSugar.transform_expression/2 to handle
  both compile-time keyword lists and runtime AST variable references
- Added test case that reproduces the issue and verifies the fix
- Added CLAUDE.md with development guidelines

Fixes #52
Pull Request #53: Fix issue #52: Handle AST variable opts in macros

2 of 2 new or added lines in 1 file covered. (100.0%)

59 of 64 relevant lines covered (92.19%)

27.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 b1d8c1df6230869c45454c83e257b4bd02335fad-PR-53.1 24 Jun 2025 09:55PM UTC 5
92.19
GitHub Action Run
Source Files on build b1d8c1df6230869c45454c83e257b4bd02335fad-PR-53
  • Tree
  • List 5
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #53
  • PR Base - master (#21653CB5...)
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