Skip to content

Instantly share code, notes, and snippets.

@papandreou
Created January 10, 2019 18:21
Show Gist options
  • Save papandreou/89a913b62e79f56409b14905c798c6ae to your computer and use it in GitHub Desktop.
Save papandreou/89a913b62e79f56409b14905c798c6ae to your computer and use it in GitHub Desktop.
Output of stryker on express-extractheaders
[express-extractheaders]$ stryker run
19:20:23 (3766) INFO ConfigReader Using stryker.conf.js in the current working directory.
19:20:23 (3766) INFO MochaOptionsLoader Loading mochaOpts from "/home/andreas/work/express-extractheaders/test/mocha.opts"
19:20:23 (3766) INFO InputFileResolver Found 2 of 38 file(s) to be mutated.
19:20:23 (3766) INFO InitialTestExecutor Starting initial test run. This may take a while.
19:20:25 (3766) INFO InitialTestExecutor Initial test run succeeded. Ran 33 tests in 1 second (net 326 ms, overhead 490 ms).
19:20:25 (3766) INFO Stryker 232 Mutant(s) generated
19:20:25 (3766) INFO SandboxPool Creating 4 test runners (based on CPU count)
Mutation testing [==================================================] 100% (ETC n/a) 232/232 tested (37 survived)
13. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/RangeOmittingStream.js:13:6
- this.omitRanges[0][0] < chunk.length + this.responsePosition
+ this.omitRanges[0][0] <= chunk.length + this.responsePosition
18. [Survived] ConditionalExpression
/home/andreas/work/express-extractheaders/lib/RangeOmittingStream.js:13:6
- this.omitRanges[0][0] < chunk.length + this.responsePosition
+ true
25. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/RangeOmittingStream.js:21:14
- if (omitIndex > 0) {
+ if (true) {
26. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/RangeOmittingStream.js:21:14
- if (omitIndex > 0) {
+ if (omitIndex >= 0) {
30. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/RangeOmittingStream.js:25:14
- if (omitRange[1] <= chunk.length + this.responsePosition) {
+ if (omitRange[1] < chunk.length + this.responsePosition) {
38. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/RangeOmittingStream.js:29:27
- omitRange[0] = this.responsePosition + chunk.length;
+ omitRange[0] = this.responsePosition - chunk.length;
66. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:23:10
- if (isHead) {
+ if (true) {
68. [Survived] StringLiteral
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:26:21
- req.method = 'GET';
+ req.method = "";
69. [Survived] StringLiteral
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:29:25
- delete req.headers['if-range'];
+ delete req.headers[""];
73. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:31:12
- if (err) {
+ if (false) {
75. [Survived] Block
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:31:17
- if (err) {
- res.unhijack();
- return next(err);
- } else if (
+ if (err) {} else if (
88. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:38:11
- (previousResult.omitRanges.length === 0 ||
- !/^W\//.test(previousResult.headers.etag))
+ (previousResult.omitRanges.length === 0 && !/^W\//.test(previousResult.headers.etag))
90. [Survived] ConditionalExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:38:11
- (previousResult.omitRanges.length === 0 ||
- !/^W\//.test(previousResult.headers.etag))
+ (true)
92. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:38:11
- (previousResult.omitRanges.length === 0 ||
+ (previousResult.omitRanges.length !== 0 ||
93. [Survived] ConditionalExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:38:11
- (previousResult.omitRanges.length === 0 ||
+ (false ||
94. [Survived] PrefixUnaryExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:39:12
- !/^W\//.test(previousResult.headers.etag))
+ /^W\//.test(previousResult.headers.etag))
96. [Survived] ConditionalExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:38:11
- (previousResult.omitRanges.length === 0 ||
+ (true ||
99. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:42:14
- if (previousResult.omitRanges.length > 0) {
+ if (previousResult.omitRanges.length >= 0) {
100. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:42:14
- if (previousResult.omitRanges.length > 0) {
+ if (true) {
102. [Survived] Block
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:42:52
- if (previousResult.omitRanges.length > 0) {
- return res
- .pipe(new RangeOmittingStream(previousResult.omitRanges))
- .pipe(res);
- } else {
+ if (previousResult.omitRanges.length > 0) {} else {
105. [Survived] Block
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:46:17
- } else {
- return res.unhijack();
- }
+ } else {}
114. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:61:18
- if (typeof contentLength !== 'undefined') {
+ if (true) {
116. [Survived] StringLiteral
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:61:43
- if (typeof contentLength !== 'undefined') {
+ if (typeof contentLength !== "") {
121. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:66:20
- if (contentLengthAdjustment) {
+ if (true) {
128. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:78:18
- if (omitRanges.length > 0) {
+ if (true) {
129. [Survived] BinaryExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:78:18
- if (omitRanges.length > 0) {
+ if (omitRanges.length >= 0) {
141. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:94:18
- if (stillParsing) {
+ if (true) {
154. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:97:22
- if (typeof httpEquiv === 'string') {
+ if (true) {
168. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:118:27
- } else if (name === 'link') {
+ } else if (true) {
179. [Survived] ConditionalExpression
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:125:20
- typeof href === 'string' &&
+ true &&
208. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:144:31
- } else if (headers.link) {
+ } else if (true) {
209. [Survived] Block
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:153:39
- onclosetag: function(name) {
- if (name === 'head') {
- stopParsingAndSendResponse();
- }
- }
+ onclosetag: function(name) {}
212. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:154:18
- if (name === 'head') {
+ if (false) {
213. [Survived] StringLiteral
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:154:27
- if (name === 'head') {
+ if (name === "") {
215. [Survived] Block
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:154:35
- if (name === 'head') {
- stopParsingAndSendResponse();
- }
+ if (name === 'head') {}
223. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:163:20
- if (!isHead) {
+ if (true) {
226. [Survived] IfStatement
/home/andreas/work/express-extractheaders/lib/expressExtractHeaders.js:167:25
- } else if (!isHead) {
+ } else if (true) {
Ran 9.17 tests per mutant on average.
--------------------------|---------|----------|-----------|------------|----------|---------|
File | % score | # killed | # timeout | # survived | # no cov | # error |
--------------------------|---------|----------|-----------|------------|----------|---------|
All files | 83.70 | 185 | 5 | 37 | 0 | 5 |
expressExtractHeaders.js | 83.42 | 156 | 0 | 31 | 0 | 3 |
RangeOmittingStream.js | 85.00 | 29 | 5 | 6 | 0 | 2 |
--------------------------|---------|----------|-----------|------------|----------|---------|
19:20:51 (3766) INFO Stryker Done in 27 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment