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

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

Build:
Build:
LAST BUILD BRANCH: fix-deprecated-pkgs
DEFAULT BRANCH: master
Ran 08 Jan 2018 08:35AM UTC
Jobs 2
Files 35
Run time 19s
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
4425

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%)

1738.4 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/model-builder.js
Jobs
ID Job ID Ran Files Coverage
1 4425.1 08 Jan 2018 08:35AM UTC 0
83.53
Travis Job 4425.1
2 4425.2 08 Jan 2018 08:35AM UTC 0
83.53
Travis Job 4425.2
Source Files on build 4425
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4425
  • 12bee526 on github
  • Next Build on feature/correct-model-ctor-name (#4427)
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