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

Squarespace / template-engine / 319
95%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v2.8.11
DEFAULT BRANCH: master
Ran 11 Dec 2020 07:14PM UTC
Jobs 2
Files 57
Run time 25s
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
319

push

travis-ci

phensley
Expression evaluation instruction

Expression evaluation using an extended version of Dijkstra's "shunting
yard" algorithm with JavaScript semantics. This algorithm was chosen as
it is simple, sufficient, and can be implemented compactly, minimizing
the size of the code and making it easier to verify correct.

Features:

 - Number, Boolean, Null, and String types
 - String parsing of backslash char, hex, and unicode escapes
   - unicode escapes can contain up to 6 hex characters with a
     value of <= 0x10FFFF
   - "\n", "\x20", "\u2018", "\u01f600" are all valid strings
 - Decimal and hex numbers
 - Assignment statements
 - Variable references
 - Operator precedence
 - Common math, binary and logical operators
 - Both strict and non-strict equality
 - Nesting of sub-expressions with parenthesis
 - Single pass evaluation of multiple semicolon-delimited expressions
 - String equality and concatenation
 - Function calls with a variable number of arguments
   - example: max(1, 2, 3, ..., N) is accepted
 - Type conversion functions
 - Common constants (pi, e, etc)
 - Configurable parse and reduce limits
   - maximum tokens an expression can contain
   - maximum length of a concatenated string

The algorithm assumes the expression is well-formed and performs minimal
validation.  A malformed expression should either terminate evaluation
early or produce no value.

1875 of 2070 branches covered (90.58%)

Branch coverage included in aggregate %.

4713 of 4905 relevant lines covered (96.09%)

2395.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 319.1 11 Dec 2020 07:14PM UTC 0
94.45
Travis Job 319.1
2 319.2 11 Dec 2020 07:14PM UTC 0
94.45
Travis Job 319.2
Source Files on build 319
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #319
  • 435e8e15 on github
  • Prev Build on expressions (#317)
  • Next Build on expressions (#323)
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