Ran
|
Jobs
12
|
Files
6
|
Run time
3min
|
Badge
Embed ▾
README BADGES
|
travis-ci
Do not hit the database for empty ancestries When doing `object.ancestors`, there is a hit to the database even if the ancestry is empty: Area Load (0.4ms) SELECT "areas".* FROM "areas" WHERE 1=0 ORDER BY COALESCE("areas"."ancestry", '') ASC ActiveRecord since 4.0[1] provides an interface to return empty queries that don't hit the database. Let's return that when there is no ancestry to load. [1] https://github.com/rails/rails/commit/8270e4a8c
1 of 1 new or added line in 1 file covered. (100.0%)
398 of 413 relevant lines covered (96.37%)
3700.72 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 449.1 (2.4, gemfiles/mysql2_ar_42.gemfile) | 6 |
95.16 |
Travis Job 449.1 | |
2 | 449.2 (2.4, gemfiles/mysql2_ar_50.gemfile) | 6 |
95.16 |
Travis Job 449.2 | |
3 | 449.3 (2.4, gemfiles/mysql2_ar_51.gemfile) | 6 |
95.16 |
Travis Job 449.3 | |
4 | 449.4 (2.4, gemfiles/mysql2_ar_52.gemfile) | 6 |
95.16 |
Travis Job 449.4 | |
5 | 449.5 (2.4, gemfiles/pg_ar_42.gemfile) | 6 |
95.16 |
Travis Job 449.5 | |
6 | 449.6 (2.4, gemfiles/pg_ar_50.gemfile) | 6 |
95.16 |
Travis Job 449.6 | |
7 | 449.7 (2.4, gemfiles/pg_ar_51.gemfile) | 6 |
95.16 |
Travis Job 449.7 | |
8 | 449.8 (2.4, gemfiles/pg_ar_52.gemfile) | 6 |
95.16 |
Travis Job 449.8 | |
9 | 449.9 (2.4, gemfiles/sqlite3_ar_42.gemfile) | 6 |
95.16 |
Travis Job 449.9 | |
10 | 449.10 (2.4, gemfiles/sqlite3_ar_50.gemfile) | 6 |
95.16 |
Travis Job 449.10 | |
11 | 449.11 (2.4, gemfiles/sqlite3_ar_51.gemfile) | 6 |
95.16 |
Travis Job 449.11 | |
12 | 449.12 (2.4, gemfiles/sqlite3_ar_52.gemfile) | 6 |
95.16 |
Travis Job 449.12 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|