diff --git a/.eslintrc.js b/.eslintrc.js index 6710f8a..e0919f9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,10 @@ +/* + * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of Crypto-Helper which is released under MIT. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , March 2020 + */ + module.exports = { env: { commonjs: true, diff --git a/index.js b/index.js index 551899a..8720edf 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,7 @@ /* * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of Crypto-Helper which is released under MIT. + * See file 'LICENSE' for full license details. * Created by Timo Hocker , March 2020 */ diff --git a/jenkins.js b/jenkins.js index fb5239d..d35ac35 100644 --- a/jenkins.js +++ b/jenkins.js @@ -1,3 +1,10 @@ +/* + * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of Crypto-Helper which is released under MIT. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , March 2020 + */ + /* eslint-disable no-process-exit */ /* eslint-disable no-console */ /* eslint-disable no-sync */ diff --git a/stryker.conf.js b/stryker.conf.js index 08c8b77..a5c648e 100644 --- a/stryker.conf.js +++ b/stryker.conf.js @@ -1,3 +1,10 @@ +/* + * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of Crypto-Helper which is released under MIT. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , March 2020 + */ + 'use strict'; module.exports = function cfg (config) { diff --git a/stryker.log b/stryker.log new file mode 100644 index 0000000..75fec8b --- /dev/null +++ b/stryker.log @@ -0,0 +1,67 @@ +13:31:25 (7372) INFO ConfigReader Using stryker.conf.js +13:31:26 (7372) INFO BroadcastReporter Detected that current console does not support the "progress" reporter, downgrading to "progress-append-only" reporter +13:31:26 (7372) INFO InputFileResolver Found 1 of 14 file(s) to be mutated. +13:31:26 (7372) INFO InitialTestExecutor Starting initial test run. This may take a while. +13:31:46 (7372) INFO InitialTestExecutor Initial test run succeeded. Ran 1 tests in 19 seconds (net 18605 ms, overhead 1 ms). +13:31:46 (7372) INFO MutatorFacade 83 Mutant(s) generated +13:31:46 (7372) WARN MutantTestMatcher No coverage result found, even though coverageAnalysis is "all". Assuming that all tests cover each mutant. This might have a big impact on the performance. +13:31:46 (7372) INFO SandboxPool Creating 2 test runners (based on CPU count) +Mutation testing 0% (elapsed: <1m, remaining: n/a) 0/83 tested (0 survived, 0 timed out) +Mutation testing 4% (elapsed: <1m, remaining: ~6m) 4/83 tested (0 survived, 0 timed out) +Mutation testing 7% (elapsed: <1m, remaining: ~6m) 6/83 tested (0 survived, 0 timed out) +Mutation testing 9% (elapsed: <1m, remaining: ~6m) 8/83 tested (0 survived, 0 timed out) +Mutation testing 12% (elapsed: <1m, remaining: ~6m) 10/83 tested (0 survived, 0 timed out) +Mutation testing 14% (elapsed: ~1m, remaining: ~5m) 12/83 tested (0 survived, 0 timed out) +Mutation testing 15% (elapsed: ~1m, remaining: ~6m) 13/83 tested (0 survived, 0 timed out) +Mutation testing 19% (elapsed: ~1m, remaining: ~5m) 16/83 tested (0 survived, 0 timed out) +Mutation testing 21% (elapsed: ~1m, remaining: ~5m) 18/83 tested (1 survived, 0 timed out) +Mutation testing 21% (elapsed: ~1m, remaining: ~6m) 18/83 tested (1 survived, 0 timed out) +Mutation testing 24% (elapsed: ~1m, remaining: ~5m) 20/83 tested (1 survived, 0 timed out) +Mutation testing 26% (elapsed: ~2m, remaining: ~5m) 22/83 tested (1 survived, 0 timed out) +Mutation testing 28% (elapsed: ~2m, remaining: ~5m) 24/83 tested (1 survived, 0 timed out) +Mutation testing 31% (elapsed: ~2m, remaining: ~5m) 26/83 tested (1 survived, 0 timed out) +Mutation testing 33% (elapsed: ~2m, remaining: ~4m) 28/83 tested (2 survived, 0 timed out) +Mutation testing 36% (elapsed: ~2m, remaining: ~4m) 30/83 tested (2 survived, 0 timed out) +Mutation testing 38% (elapsed: ~2m, remaining: ~4m) 32/83 tested (2 survived, 0 timed out) +Mutation testing 40% (elapsed: ~3m, remaining: ~4m) 34/83 tested (2 survived, 0 timed out) +Mutation testing 45% (elapsed: ~3m, remaining: ~3m) 38/83 tested (2 survived, 0 timed out) +Mutation testing 48% (elapsed: ~3m, remaining: ~3m) 40/83 tested (2 survived, 0 timed out) +Mutation testing 50% (elapsed: ~3m, remaining: ~3m) 42/83 tested (2 survived, 0 timed out) +Mutation testing 53% (elapsed: ~3m, remaining: ~3m) 44/83 tested (2 survived, 0 timed out) +Mutation testing 57% (elapsed: ~3m, remaining: ~2m) 48/83 tested (2 survived, 0 timed out) +Mutation testing 60% (elapsed: ~4m, remaining: ~2m) 50/83 tested (2 survived, 0 timed out) +Mutation testing 62% (elapsed: ~4m, remaining: ~2m) 52/83 tested (2 survived, 0 timed out) +Mutation testing 67% (elapsed: ~4m, remaining: ~2m) 56/83 tested (2 survived, 0 timed out) +Mutation testing 72% (elapsed: ~4m, remaining: ~1m) 60/83 tested (3 survived, 0 timed out) +Mutation testing 77% (elapsed: ~4m, remaining: ~1m) 64/83 tested (3 survived, 0 timed out) +Mutation testing 84% (elapsed: ~4m, remaining: <1m) 70/83 tested (3 survived, 0 timed out) +Mutation testing 89% (elapsed: ~5m, remaining: <1m) 74/83 tested (3 survived, 0 timed out) +Mutation testing 93% (elapsed: ~5m, remaining: <1m) 78/83 tested (3 survived, 0 timed out) +Mutation testing 98% (elapsed: ~5m, remaining: <1m) 82/83 tested (3 survived, 0 timed out) + +16. [Survived] ArithmeticOperator +/home/timo/dev/crypto-helper/index.js:48:40 +- return crypto.randomBytes (Math.ceil (len * 3 / 4)) ++ return crypto.randomBytes (Math.ceil (len * 3 * 4)) + +Ran all tests for this mutant. +26. [Survived] ArithmeticOperator +/home/timo/dev/crypto-helper/index.js:62:40 +- return crypto.randomBytes (Math.ceil (len / 2)) ++ return crypto.randomBytes (Math.ceil (len * 2)) + +Ran all tests for this mutant. +56. [Survived] EqualityOperator +/home/timo/dev/crypto-helper/index.js:125:23 +- if (timeout !== 0 && time > timeout) ++ if (timeout !== 0 && time >= timeout) + +Ran all tests for this mutant. +Ran 1.00 tests per mutant on average. +----------|---------|----------|-----------|------------|----------|---------| +File | % score | # killed | # timeout | # survived | # no cov | # error | +----------|---------|----------|-----------|------------|----------|---------| +All files | 96.39 | 80 | 0 | 3 | 0 | 0 | + index.js | 96.39 | 80 | 0 | 3 | 0 | 0 | +----------|---------|----------|-----------|------------|----------|---------| +13:37:08 (7372) INFO Stryker Done in 5 minutes 42 seconds. diff --git a/test/encryption.js b/test/encryption.js index bdd0b84..5023e8e 100644 --- a/test/encryption.js +++ b/test/encryption.js @@ -1,3 +1,10 @@ +/* + * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of Crypto-Helper which is released under MIT. + * See file 'LICENSE' for full license details. + * Created by Timo Hocker , March 2020 + */ + /* eslint-disable no-magic-numbers */ // @ts-nocheck 'use strict'; diff --git a/test/index.js b/test/index.js index 261bcc0..9dd77e7 100644 --- a/test/index.js +++ b/test/index.js @@ -1,5 +1,7 @@ /* * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of Crypto-Helper which is released under MIT. + * See file 'LICENSE' for full license details. * Created by Timo Hocker , March 2020 */ diff --git a/test/index.js.save b/test/index.js.save index 3e9a00d..1b3ece3 100644 --- a/test/index.js.save +++ b/test/index.js.save @@ -1,5 +1,7 @@ /* * Copyright (C) Sapphirecode - All Rights Reserved + * This file is part of Crypto-Helper which is released under MIT. + * See file 'LICENSE' for full license details. * Created by Timo Hocker , March 2020 */