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

bamorim / typed_ecto_schema / 252ffef746e3b2d4f86ff89ea9275798eee759a0 / 1
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 25 Jun 2025 12:23PM UTC
Files 5
Run time 0s
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

25 Jun 2025 12:23PM UTC coverage: 92.188% (+0.1%) from 92.063%
252ffef746e3b2d4f86ff89ea9275798eee759a0.1

push

github

web-flow
fix: handle AST variable opts in macros (#53)

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

59 of 64 relevant lines covered (92.19%)

27.11 hits per line

Source Files on job 252ffef746e3b2d4f86ff89ea9275798eee759a0.1
  • Tree
  • List 5
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 252
  • 252ffef7 on github
  • Prev Job for on master (#21653cb5b8e47a36a8123bb2a270175f76d74f9c.1)
  • Next Job for on master (#9494e658f570e1dd2719333b6beb7f1a9d4bad44.1)
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