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

mlange-42 / arche / 7775301742

04 Feb 2024 04:17PM CUT coverage: 100.0%. Remained the same
7775301742

push

github

web-flow
Fix Zenodo DOI in README.md (#360)

6159 of 6159 relevant lines covered (100.0%)

52100.66 hits per line

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

100.0
/ecs/bitmask_common.go
1
package ecs
2

3
const wordSize = 64
4

5
// Matches the mask as filter against another mask.
6
func (b Mask) Matches(bits *Mask) bool {
77,104✔
7
        return bits.Contains(&b)
77,104✔
8
}
77,104✔
9

10
// Without creates a [MaskFilter] which filters for including the mask's components,
11
// and excludes the components given as arguments.
12
func (b Mask) Without(comps ...ID) MaskFilter {
7✔
13
        return MaskFilter{
7✔
14
                Include: b,
7✔
15
                Exclude: All(comps...),
7✔
16
        }
7✔
17
}
7✔
18

19
// Exclusive creates a [MaskFilter] which filters for exactly the mask's components.
20
// Matches only entities that have exactly the given components, and no other.
21
func (b Mask) Exclusive() MaskFilter {
6✔
22
        return MaskFilter{
6✔
23
                Include: b,
6✔
24
                Exclude: b.Not(),
6✔
25
        }
6✔
26
}
6✔
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