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

tbranyen / diffhtml / 355
93%
master: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/packages/diffhtml-devtools/sha.js-2.4.12
DEFAULT BRANCH: master
Ran 13 Jun 2016 08:34PM UTC
Jobs 1
Files 18
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

pending completion
355

push

travis-ci

tbranyen
Taking the time to clean up the codebase

I've wanted to take the time to clean up the codebase and ensure
everything is consistent. Right now my refactor efforts are to use
common nomenclature when talking about Virtual Tree Elements and DOM
Nodes. This distinction is important in the codebase, and is currently
different depending on the file you're in. Sometimes they're called
entry, sometimes tree, descriptor, etc. I'm consolidating all the
variable names to vTree and node.

Another important refactor is to provide clean and consistent JSDoc
comments above all functions public/private.

I'm attempting to use `const` wherever possible to denote that a
variable is never re-assigned. I'm refactoring branched code that
required using `var` or `let` into functions. I will still use `let` for
loops, since we are tight-loop critical and I don't like the overhead of
functional looping here.

There are parts of the codebase that are highly duplicative and I'm
leveraging the createElement/createAttribute functions, exposed for the
Babel transform, internally.

In preparation for a 1.0 release, I want to make sure all the code makes
sense and references variables consistently. This furthers that push by
making it explicit that an object is either a DOM Node or a Virtual Tree
Element/Attribute. This made it easier to re-arrange the file structure
to better match what they do. For instance, before makeElement made a
DOM Node and makeNode made a Virtual Tree Element.

This didn't affect tests other than for import paths in the internal
unit tests.

765 of 827 relevant lines covered (92.5%)

141.05 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/15372185 355.1 13 Jun 2016 08:33PM UTC 0
92.5
Travis Job 355.1
Source Files on build 355
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #355
  • 49293c29 on github
  • Prev Build on general-cleanup (#353)
  • Next Build on general-cleanup (#357)
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