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

strongloop / loopback-datasource-juggler / 4427
84%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix-deprecated-pkgs
DEFAULT BRANCH: master
Ran 08 Jan 2018 08:43AM UTC
Jobs 3
Files 35
Run time 398min
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
4427

push

travis-ci

bajtos
Set model constructor name to model name

Rework the code building model constructors to leverage `Function` class
and dynamically emit a constructor function named after the model.

Before this change, all model classes were called "ModelConstructor",
which made debugging difficult.

After this change, a model class for model "User" is called "User.

Because not all valid model names are also valid JavaScript identifiers,
we implement a simple sanitization technique (replacing characters like
"-", "." and ":" with underscore "_") and fall back to legacy
"ModelConstructor" if the model name is still not a valid JS identifier.

4252 of 5385 branches covered (78.96%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 1 file covered. (100.0%)

6773 of 7814 relevant lines covered (86.68%)

2608.25 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/model-builder.js

Uncovered Existing Lines

Lines Coverage ∆ File
41
100.0
lib/model-builder.js
Jobs
ID Job ID Ran Files Coverage
1 4427.1 08 Jan 2018 03:21PM UTC 0
83.53
Travis Job 4427.1
2 4427.2 08 Jan 2018 08:44AM UTC 0
83.53
Travis Job 4427.2
3 4427.3 08 Jan 2018 08:43AM UTC 0
83.53
Travis Job 4427.3
Source Files on build 4427
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4427
  • b0b377af on github
  • Prev Build on feature/correct-model-ctor-name (#4425)
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