===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
node-mqtt-packet-6.6.0/test.js-11-function testParseGenerate (name, object, buffer, opts) {
node-mqtt-packet-6.6.0/test.js:12:  test(`${name} parse`, t => {
node-mqtt-packet-6.6.0/test.js-13-    t.plan(2)
##############################################
node-mqtt-packet-6.6.0/test.js-33-
node-mqtt-packet-6.6.0/test.js:34:  test(`${name} generate`, t => {
node-mqtt-packet-6.6.0/test.js-35-    t.equal(mqtt.generate(object, opts).toString('hex'), buffer.toString('hex'))
##############################################
node-mqtt-packet-6.6.0/test.js-38-
node-mqtt-packet-6.6.0/test.js:39:  test(`${name} mirror`, t => {
node-mqtt-packet-6.6.0/test.js-40-    t.plan(2)
##############################################
node-mqtt-packet-6.6.0/test.js-60-
node-mqtt-packet-6.6.0/test.js:61:  test(`${name} writeToStream`, t => {
node-mqtt-packet-6.6.0/test.js-62-    const stream = WS()
##############################################
node-mqtt-packet-6.6.0/test.js-116-    obj.cmd = cmd
node-mqtt-packet-6.6.0/test.js:117:    testGenerateError(expected, obj, opts, `${expected} on ${cmd}`)
node-mqtt-packet-6.6.0/test.js-118-  }
##############################################
node-mqtt-packet-6.6.0/test.js-122-function testParseGenerateDefaults (name, object, buffer, opts) {
node-mqtt-packet-6.6.0/test.js:123:  test(`${name} parse`, t => {
node-mqtt-packet-6.6.0/test.js-124-    const parser = mqtt.parser(opts)
##############################################
node-mqtt-packet-6.6.0/test.js-131-      Object.keys(expected).forEach(key => {
node-mqtt-packet-6.6.0/test.js:132:        t.deepEqual(packet[key], expected[key], `expected packet property ${key}`)
node-mqtt-packet-6.6.0/test.js-133-      })
##############################################
node-mqtt-packet-6.6.0/test.js-139-
node-mqtt-packet-6.6.0/test.js:140:  test(`${name} generate`, t => {
node-mqtt-packet-6.6.0/test.js-141-    t.equal(mqtt.generate(object).toString('hex'), buffer.toString('hex'))
##############################################
node-mqtt-packet-6.6.0/test.js-146-function testWriteToStreamError (expected, fixture) {
node-mqtt-packet-6.6.0/test.js:147:  test(`writeToStream ${expected} error`, t => {
node-mqtt-packet-6.6.0/test.js-148-    t.plan(2)
##############################################
node-mqtt-packet-6.6.0/test.js-2289-  parser.on('packet', packet => {
node-mqtt-packet-6.6.0/test.js:2290:    t.ok(++packetCount <= expectedPackets, `expected <= ${expectedPackets} packets`)
node-mqtt-packet-6.6.0/test.js-2291-  })
##############################################
node-mqtt-packet-6.6.0/test.js-2293-  parser.on('error', erroneous => {
node-mqtt-packet-6.6.0/test.js:2294:    t.ok(++errorCount <= expectedErrors, `expected <= ${expectedErrors} errors`)
node-mqtt-packet-6.6.0/test.js-2295-  })
##############################################
node-mqtt-packet-6.6.0/testRandom.js-84-console.log('Total errors:', errors + delta)
node-mqtt-packet-6.6.0/testRandom.js:85:console.log('Error rate:', `${((errors + delta) / max * 100).toFixed(2)}%`)
node-mqtt-packet-6.6.0/testRandom.js-86-console.log('==========================')
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-885-        if (typeof value !== 'boolean') {
node-mqtt-packet-6.6.0/writeToStream.js:886:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-887-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-893-        if (typeof value !== 'number' || value < 0 || value > 0xff) {
node-mqtt-packet-6.6.0/writeToStream.js:894:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-895-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-901-        if (value && value === null) {
node-mqtt-packet-6.6.0/writeToStream.js:902:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-903-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-909-        if (typeof value !== 'number' || value < 0 || value > 0xffff) {
node-mqtt-packet-6.6.0/writeToStream.js:910:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-911-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-917-        if (typeof value !== 'number' || value < 0 || value > 0xffffffff) {
node-mqtt-packet-6.6.0/writeToStream.js:918:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-919-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-926-        if (typeof value !== 'number' || value < 0 || value > 0x0fffffff) {
node-mqtt-packet-6.6.0/writeToStream.js:927:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-928-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-934-        if (typeof value !== 'string') {
node-mqtt-packet-6.6.0/writeToStream.js:935:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-936-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-942-        if (typeof value !== 'object') {
node-mqtt-packet-6.6.0/writeToStream.js:943:          stream.emit('error', new Error(`Invalid ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-944-          return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-960-      default: {
node-mqtt-packet-6.6.0/writeToStream.js:961:        stream.emit('error', new Error(`Invalid property ${name}: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-962-        return false
##############################################
node-mqtt-packet-6.6.0/writeToStream.js-1069-    default: {
node-mqtt-packet-6.6.0/writeToStream.js:1070:      stream.emit('error', new Error(`Invalid property ${propName} value: ${value}`))
node-mqtt-packet-6.6.0/writeToStream.js-1071-      return false