mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 19:37:51 +00:00
```bash for file in `cat diffys`; do printf '%s\n%s\n' "// Copyright 2021 Molecula Corp. All rights reserved." "$(cat $file)" >$file; done ```
22 lines
505 B
Go
22 lines
505 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
//go:build roaringparanoia
|
|
// +build roaringparanoia
|
|
|
|
package roaring
|
|
|
|
import "fmt"
|
|
|
|
const roaringParanoia = true
|
|
|
|
// CheckN verifies that the container's cached count is correct. Note
|
|
// that this has two definitions, depending on the presence of the
|
|
// roaringparanoia build tag.
|
|
func (c *Container) CheckN() {
|
|
if c == nil {
|
|
return
|
|
}
|
|
count := c.count()
|
|
if count != c.n {
|
|
panic(fmt.Sprintf("CheckN (%p): n %d, count %d", c, c.n, count))
|
|
}
|
|
}
|