• 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

81.82
/lib/protocol/packets/EofPacket.js
1
module.exports = EofPacket;
396✔
2
function EofPacket(options) {
3
  options = options || {};
1,768✔
4

5
  this.fieldCount   = undefined;
1,768✔
6
  this.warningCount = options.warningCount;
1,768✔
7
  this.serverStatus = options.serverStatus;
1,768✔
8
  this.protocol41   = options.protocol41;
1,768✔
9
}
10

11
EofPacket.prototype.parse = function(parser) {
396✔
12
  this.fieldCount   = parser.parseUnsignedNumber(1);
1,548✔
13
  if (this.protocol41) {
1,548!
14
    this.warningCount = parser.parseUnsignedNumber(2);
1,548✔
15
    this.serverStatus = parser.parseUnsignedNumber(2);
1,548✔
16
  }
17
};
18

19
EofPacket.prototype.write = function(writer) {
396✔
20
  writer.writeUnsignedNumber(1, 0xfe);
220✔
21
  if (this.protocol41) {
220!
22
    writer.writeUnsignedNumber(2, this.warningCount);
×
23
    writer.writeUnsignedNumber(2, this.serverStatus);
×
24
  }
25
};
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