File / Directory |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Runtime errors |
# Transpile errors |
Total detected |
Total undetected |
Total mutants | |
---|---|---|---|---|---|---|---|---|---|---|---|
hmac.js | 100.00 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
const jsSHA = require('jssha')
function hmacSha1 (secretKey, text) 0{
}{
const shaObj = new jsSHA('SHA-1', 'TEXT') // eslint-disable-line new-cap
shaObj.setHMACKey(secretKey, 'TEXT')
shaObj.update(text)
return shaObj.getHMAC('HEX')
}
module.exports = hmacSha1
# | Mutator | State | Location | Original | Replacement |
---|---|---|---|---|---|
0 | BlockStatement | Killed | 2 : 36 | {
...')
} |
{
} |