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

fogfish / iq / 20787749414

07 Jan 2026 04:05PM UTC coverage: 32.132%. First build
20787749414

Pull #88

github

fogfish
(fix) support /dev/null target to generate report
Pull Request #88: (fix) Housekeeping after Claude generated code

264 of 1309 new or added lines in 45 files covered. (20.17%)

1248 of 3884 relevant lines covered (32.13%)

0.34 hits per line

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

47.37
/internal/iosystem/codec/binary.go
1
//
2
// Copyright (C) 2025 - 2026 Dmitry Kolesnikov
3
//
4
// This file may be modified and distributed under the terms
5
// of the MIT license.  See the LICENSE file for details.
6
// https://github.com/fogfish/iq
7
//
8

9
package codec
10

11
import (
12
        "fmt"
13
        "io"
14
)
15

16
type BinaryCodec struct{}
17

18
func NewBinaryCodec() Codec {
1✔
19
        return &BinaryCodec{}
1✔
20
}
1✔
21

22
func (c *BinaryCodec) ContentType() string {
1✔
23
        return ContentStream
1✔
24
}
1✔
25

26
func (c *BinaryCodec) Extensions() []string {
1✔
27
        return []string{".bin", ".dat"}
1✔
28
}
1✔
29

NEW
30
func (c *BinaryCodec) Decode(r io.Reader) (any, error) {
×
NEW
31
        return io.ReadAll(r)
×
NEW
32
}
×
33

NEW
34
func (c *BinaryCodec) Encode(w io.Writer, data any) error {
×
NEW
35
        switch v := data.(type) {
×
NEW
36
        case []byte:
×
NEW
37
                _, err := w.Write(v)
×
NEW
38
                return err
×
NEW
39
        default:
×
NEW
40
                return fmt.Errorf("binary codec: expected []byte, got %T", data)
×
41
        }
42
}
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