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

sobolevn / recase / 323
99%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2020 07:38PM UTC
Jobs 8
Files 15
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

pending completion
323

push

travis-ci-com

web-flow
Update handle_value to only convert values when the value has implemented the Enumerable protocol (#104)

Earlier, I opened https://github.com/sobolevn/recase/pull/97/files because passing a DateTime value to the converter would fail, since it passed the is_map check, but would not work when passed to Enum; I fixed it by hardcoding a new pattern-matched function against DateTimes, and early returning the datetime. However, I now need the same functionality, but for Decimal, which does not exist (and doesn't need to) in this lib. Unfortunately, is_map(%Decimal{}) also returns true, and then fails when passed to Enum.

I think the best solution is to check if the Enumerable protocol is implemented, which may determine if the value can be passed to the next check.

77 of 78 relevant lines covered (98.72%)

500.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 323.1 (MIX_ENV=test) 06 Oct 2020 07:39PM UTC 0
98.72
Travis Job 323.1
2 323.2 (MIX_ENV=test) 06 Oct 2020 07:38PM UTC 0
98.72
Travis Job 323.2
3 323.3 (MIX_ENV=test) 06 Oct 2020 07:39PM UTC 0
98.72
Travis Job 323.3
4 323.4 (MIX_ENV=test) 06 Oct 2020 07:39PM UTC 0
98.72
Travis Job 323.4
5 323.5 (MIX_ENV=test) 06 Oct 2020 07:39PM UTC 0
98.72
Travis Job 323.5
6 323.6 (MIX_ENV=test) 06 Oct 2020 07:40PM UTC 0
98.72
Travis Job 323.6
7 323.7 (MIX_ENV=test) 06 Oct 2020 07:40PM UTC 0
98.72
Travis Job 323.7
8 323.8 (MIX_ENV=test) 06 Oct 2020 07:40PM UTC 0
98.72
Travis Job 323.8
Source Files on build 323
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #323
  • c1ced8ab on github
  • Prev Build on master (#312)
  • Next Build on master (#324)
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