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

bitwalker / timex / 640 / 1
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 01 Jul 2017 07:46PM UTC
Files 56
Run time 2s
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

01 Jul 2017 07:42PM UTC coverage: 69.162% (+0.7%) from 68.492%
640.1

push

travis-ci

bitwalker
Add typespecs for Timex.Protocol and adjust irregularities (#328)

Adding the typespecs to the protocol will enable dialyzer
to verify the typespecs of the implementations as well as
the calls from the main Timex module.

The typespecs in the Timex module was updated to use
Types.valid_datetime instead of the more verbose multi type
version (also Types.calendar_types does not exist).

Error tuple returns was added to those missing it in the
Timex module.

The protocol implementations type specifications is
narrowed down to match those of the protocol/caller module.

The typespecs for to_julian was changed to float, which is
what is returned.

Also fixes a few bugs:

* from_iso_day for Date now returns a Date struct instead of a map
* beginning_of_quarter for Date now works instead of crashes
* beginning_of_quarter now returns the correct time for erlang datetimes
* end_of_week now returns a erlang datetime instead of a date for erlang datetimes

1857 of 2685 relevant lines covered (69.16%)

86.99 hits per line

Source Files on job 640.1
  • Tree
  • List 0
  • Changed 12
  • Source Changed 6
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 640
  • Travis Job 640.1
  • 70ee35b5 on github
  • Prev Job for on master (#637.2)
  • Next Job for on master (#643.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