• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mysqljs / mysql / 3954445999

pending completion
3954445999

push

github

Douglas Christopher Wilson
build: ubuntu@20.04

869 of 1014 branches covered (85.7%)

5111 of 5264 relevant lines covered (97.09%)

687.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

68.75
/lib/protocol/packets/LocalInfileRequestPacket.js
1
module.exports = LocalInfileRequestPacket;
396✔
2
function LocalInfileRequestPacket(options) {
3
  options = options || {};
12!
4

5
  this.filename = options.filename;
12✔
6
}
7

8
LocalInfileRequestPacket.prototype.parse = function parse(parser) {
396✔
9
  if (parser.parseLengthCodedNumber() !== null) {
10!
10
    var err  = new TypeError('Received invalid field length');
×
11
    err.code = 'PARSER_INVALID_FIELD_LENGTH';
×
12
    throw err;
×
13
  }
14

15
  this.filename = parser.parsePacketTerminatedString();
10✔
16
};
17

18
LocalInfileRequestPacket.prototype.write = function write(writer) {
396✔
19
  writer.writeLengthCodedNumber(null);
2✔
20
  writer.writeString(this.filename);
2✔
21
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc