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

fogfish / iq / 20788108294

07 Jan 2026 04:16PM UTC coverage: 32.132% (-7.1%) from 39.274%
20788108294

push

github

web-flow
(fix) Housekeeping after Claude generated code  (#88)

* release [x.Y.z]
* (fix) define abstraction for composition of computation elements
* (fix) all computation elements, defining runtime abstraction
* (fix) improve AST nodes
* (fix) data exchange using the type rather than any
* (fix) the context, use Event instead of context-based data exchange
* (fix) reporting context
* (fix) emit intermediate results to sink
* (fix) caching of intermediate results
* (fix) consolidate file format codec
* (fix) integration testing
* (fix) update ADRs
* (fix) remove outdated/un-used code
* (fix) simple integration testing via it.sh
* (fix) foreach merge results into target format (json array, plain text)
* (fix) remove jsonify feature
* (fix) /dev/null runs-on target for templates, generate report

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

114 existing lines in 8 files now uncovered.

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