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

mlange-42 / arche / 4839081671

29 Apr 2023 01:41PM CUT coverage: 99.823% (-0.2%) from 100.0%
4839081671

Pull #231

github

GitHub
Merge 5046c4f83 into c9fbc3a05
Pull Request #231: Entity relations

130 of 130 new or added lines in 8 files covered. (100.0%)

2815 of 2820 relevant lines covered (99.82%)

4413.3 hits per line

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

100.0
/ecs/config.go
1
package ecs
2

3
// Config provides configuration for an ECS [World].
4
type Config struct {
5
        // Capacity increment for archetypes and the entity index.
6
        // The default value is 128.
7
        CapacityIncrement int
8
}
9

10
// NewConfig creates a new default [World] configuration.
11
func NewConfig() Config {
79✔
12
        return Config{
79✔
13
                CapacityIncrement: 128,
79✔
14
        }
79✔
15
}
79✔
16

17
// WithCapacityIncrement return a new Config with CapacityIncrement set.
18
// Use with method chaining.
19
func (c Config) WithCapacityIncrement(inc int) Config {
8✔
20
        c.CapacityIncrement = inc
8✔
21
        return c
8✔
22
}
8✔
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