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

lucaong / cubdb / 69 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 11 Sep 2019 01:36PM UTC
Files 13
Run time 1s
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

11 Sep 2019 01:34PM UTC coverage: 99.372% (-0.006%) from 99.378%
ASSERT_RECEIVE_TIMEOUT=300

push

travis-ci

web-flow
[breaking change] improve the select/3 API for key ranges (#5)

The previous API had a few shortcomings:

  - There were corner cases for `nil` min_key/max_key, or
  min_key/max_key literally being tuples like `{123, :included}`

  - It was not possible in these corner cases to detect error conditions

  - Mispelling `:included` or `:excluded` would silently fail or lead to
  unexpected results

  - The API was a bit cumbersome in general

The new API is much clearer and removes the shortcomings:

```elixir
# Exclusive ranges:
## Before:
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: {:bar, :excluded}
)
## Now:
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: :bar,
  max_key_inclusive: false
)

# Open-ended ranges:
## Before:
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: nil
)
## Now:
{:ok, result} = CubDB.select(db,
  min_key: :foo
)

# Setting min/max key to `nil`:
## Before:
{:ok, result} = CubDB.select(db,
  min_key: {nil, :included},
  max_key: :bar
)
## Now:
{:ok, result} = CubDB.select(db,
  min_key: nil,
  max_key: :bar
)
```

475 of 478 relevant lines covered (99.37%)

3172.61 hits per line

Source Files on job 69.1 (ASSERT_RECEIVE_TIMEOUT=300)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 4
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20
  • Travis Job 69.1
  • 0cdb7e43 on github
  • Prev Job for ASSERT_RECEIVE_TIMEOUT=300 on master (#63.1)
  • Next Job for ASSERT_RECEIVE_TIMEOUT=300 on master (#70.3)
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