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

bamorim / typed_ecto_schema / 252ffef746e3b2d4f86ff89ea9275798eee759a0
92%

Build:
DEFAULT BRANCH: master
Ran 25 Jun 2025 12:23PM 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

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

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

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 252ffef746e3b2d4f86ff89ea9275798eee759a0.1 25 Jun 2025 12:23PM UTC 5
92.19
GitHub Action Run
Source Files on build 252ffef746e3b2d4f86ff89ea9275798eee759a0
  • Tree
  • List 5
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 252ffef7 on github
  • Prev Build on master (#21653CB5...)
  • Next Build on master (#9494E658...)
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