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

dal-go / dalgo / 20464581391

23 Dec 2025 03:20PM UTC coverage: 96.172% (-1.8%) from 97.958%
20464581391

push

github

trakhimenok
fix: test fixed with ErrNotImplementedYet

1985 of 2064 relevant lines covered (96.17%)

1.1 hits per line

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

83.33
/recordset/column_boolean.go
1
package recordset
2

3
import (
4
        "reflect"
5

6
        "github.com/RoaringBitmap/roaring"
7
)
8

9
type columnBool struct {
10
        columnBase[bool]
11
        values *roaring.Bitmap
12
}
13

14
func (c *columnBool) GetValue(row int) (value bool, err error) {
1✔
15
        return c.values.Contains(uint32(row)), nil
1✔
16
}
1✔
17

18
func (c *columnBool) SetValue(row int, value bool) (err error) {
1✔
19
        if row >= c.rowsCount {
2✔
20
                c.rowsCount = row + 1
1✔
21
        }
1✔
22
        if value {
2✔
23
                c.values.Add(uint32(row))
1✔
24
        } else {
2✔
25
                c.values.Remove(uint32(row))
1✔
26
        }
1✔
27
        return nil
1✔
28
}
29

30
func (c *columnBool) ValueType() reflect.Type {
1✔
31
        return reflect.TypeOf(true)
1✔
32
}
1✔
33

34
func (c *columnBool) IsBitmap() bool {
1✔
35
        return true
1✔
36
}
1✔
37

38
func (c *columnBool) Add(value bool) error {
1✔
39
        c.values.Add(uint32(c.values.GetCardinality()))
1✔
40
        return c.SetValue(int(c.values.GetCardinality()-1), value)
1✔
41
}
1✔
42

43
func NewBoolColumn(name string) Column[bool] {
1✔
44
        return &columnBool{
1✔
45
                columnBase: columnBase[bool]{
1✔
46
                        name: name,
1✔
47
                        defaultVal: func() bool {
2✔
48
                                return false
1✔
49
                        },
1✔
50
                },
51
                values: roaring.New(),
52
        }
53
}
54

55
func (c *columnBool) Values() []bool {
×
56
        result := make([]bool, c.rowsCount)
×
57
        for i := 0; i < c.rowsCount; i++ {
×
58
                result[i] = c.values.Contains(uint32(i))
×
59
        }
×
60
        return result
×
61
}
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