push
github
2197 of 2375 branches covered (92.51%)
Branch coverage included in aggregate %.
1 of 1 new or added line in 1 file covered. (100.0%)
6 existing lines in 3 files now uncovered.4526 of 4665 relevant lines covered (97.02%)
78370.93 hits per line
| 1 |
export default class Expression { |
|
| 2 |
constructor(value) {
|
|
| 3 |
this.value = value;
|
50,880✔ |
| 4 |
} |
|
| 5 |
|
|
| 6 |
get() {
|
|
| 7 |
return this.value; |
4,809✔ |
| 8 |
} |
|
| 9 |
|
|
| 10 |
through(parser) {
|
|
| 11 |
return parser(this.value); |
399,187✔ |
| 12 |
} |
|
| 13 |
|
|
| 14 |
toString() {
|
|
| 15 |
return this.value; |
252✔ |
| 16 |
} |
|
| 17 |
|
|
| 18 |
toJSON() {
|
|
|
UNCOV
19
|
return `Expression::${JSON.stringify(this.value)}`; |
× |
| 20 |
} |
|
| 21 |
} |