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

mlange-42 / ark / 13843854500

13 Mar 2025 08:18PM CUT coverage: 99.786% (+0.02%) from 99.762%
13843854500

push

github

web-flow
Remove unreachable code (#195)

4 of 4 new or added lines in 1 file covered. (100.0%)

8374 of 8392 relevant lines covered (99.79%)

20864.08 hits per line

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

100.0
/ecs/checks.go
1
package ecs
2

3
import "fmt"
4

5
func (s *storage) checkRelationComponent(id ID) {
1,053✔
6
        if !s.registry.IsRelation[id.id] {
1,054✔
7
                panic(fmt.Sprintf("component with ID %d is not a relation component", id.id))
1✔
8
        }
9
}
10

11
func (s *storage) checkRelationTarget(target Entity) {
1,054✔
12
        if !target.IsZero() && !s.entityPool.Alive(target) {
1,055✔
13
                panic("can't use a dead entity as relation target, except for the zero entity")
1✔
14
        }
15
}
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