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

mlange-42 / arche-serde / 7494943208

11 Jan 2024 09:50PM CUT coverage: 84.141% (+0.2%) from 83.929%
7494943208

push

github

web-flow
Entity builder for relations (#4)

Use an `ecs.Builder` to create entities with targets in one command.

This should (?) result in an initial entity/query order exactly like in the serialized world.
Over time, however, the query iteration order will deviate in both worlds.

191 of 227 relevant lines covered (84.14%)

30.83 hits per line

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

100.0
/types.go
1
package archeserde
2

3
import "github.com/mlange-42/arche/ecs"
4

5
type deserializer struct {
6
        World      ecs.EntityData
7
        Types      []string
8
        Components []entry
9
        Resources  map[string]entry
10
}
11

12
type entry struct {
13
        Bytes []byte
14
}
15

16
func (e *entry) UnmarshalJSON(jsonData []byte) error {
18✔
17
        e.Bytes = jsonData
18✔
18
        return nil
18✔
19
}
18✔
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