travis-ci
4670 of 5656 branches covered (82.57%)
13 of 13 new or added lines in 2 files covered. (100.0%)
10412 of 11525 relevant lines covered (90.34%)
5850.54 hits per line
1 |
"use strict";
|
|
2 |
|
|
3 |
function StringWriter() { |
|
4 |
this.str = ""; |
1,715 only 2387.2 ✔ |
5 |
} |
|
6 |
|
|
7 |
StringWriter.prototype = { |
1 only 2387.2 ✔ |
8 |
write: function(str) { |
|
9 |
this.str += str;
|
6,484 only 2387.2 ✔ |
10 |
return this; |
6,484 only 2387.2 ✔ |
11 |
}, |
|
12 |
|
|
13 |
/**
|
|
14 |
* Converts the string buffer into a String. |
|
15 |
* |
|
16 |
* @returns {String} The built String |
|
17 |
*/ |
|
18 |
toString: function() { |
|
19 |
return this.str; |
1,708 only 2387.2 ✔ |
20 |
} |
|
21 |
}; |
|
22 |
|
|
23 |
module.exports = StringWriter; |
1 only 2387.2 ✔ |