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

qbeon / webwire-go / 351

16 Nov 2018 04:37PM UTC coverage: 69.617% (-12.0%) from 81.571%
351

Pull #37

travis-ci

web-flow
Fix bug and improve performance

Reuse the dial timer in the client to avoid unnecessary reallocations.
Check connection status before reading in the fasthttp/websocket
transport implementation. Replace the IsAbnormalCloseErr with IsCloseErr
method in the SockReadErr interface.
Pull Request #37: Introduce transport layer abstraction

2280 of 2280 new or added lines in 97 files covered. (100.0%)

2690 of 3864 relevant lines covered (69.62%)

571.43 hits per line

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

84.62
/message/parseConf.go
1
package message
2

3
import (
4
        "encoding/binary"
5
        "errors"
6
        "time"
7
)
8

9
// parseConf parses MsgConf messages
10
func (msg *Message) parseConf() error {
196✔
11
        if msg.MsgBuffer.len < MsgMinLenConf {
196✔
12
                return errors.New("invalid msg length, too short")
×
13
        }
×
14
        msg.ServerConfiguration = ServerConfiguration{
196✔
15
                MajorProtocolVersion: msg.MsgBuffer.buf[1:2][0],
196✔
16
                MinorProtocolVersion: msg.MsgBuffer.buf[2:3][0],
196✔
17
                ReadTimeout: time.Duration(
196✔
18
                        binary.LittleEndian.Uint32(msg.MsgBuffer.buf[3:7]),
196✔
19
                ) * time.Millisecond,
196✔
20
                MessageBufferSize: binary.LittleEndian.Uint32(msg.MsgBuffer.buf[7:11]),
196✔
21
        }
196✔
22
        return nil
196✔
23
}
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

© 2025 Coveralls, Inc