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

mlange-42 / arche-serde / 7577714645

19 Jan 2024 12:28AM CUT coverage: 84.483% (+0.3%) from 84.141%
7577714645

push

github

web-flow
Fix for opaque Arche 0.10 component and resource IDs (#7)

* Fix for opaque Arche entities and component and resource IDs
* add more interesting package example

196 of 232 relevant lines covered (84.48%)

19.97 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.EntityDump
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 {
138✔
17
        e.Bytes = jsonData
138✔
18
        return nil
138✔
19
}
138✔
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