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

mlange-42 / arche-serde / 7487858638

11 Jan 2024 11:05AM CUT coverage: 83.468% (-0.3%) from 83.766%
7487858638

Pull #3

github

web-flow
Merge 7ca67c00c into 8937cb386
Pull Request #3: Serialize entity relations

207 of 248 relevant lines covered (83.47%)

28.39 hits per line

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

57.14
/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
        Entities   []ecs.Entity
9
        Components []entry
10
        Resources  map[string]entry
11
}
12

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

17
func (e *entry) UnmarshalJSON(jsonData []byte) error {
17✔
18
        e.Bytes = jsonData
17✔
19
        return nil
17✔
20
}
17✔
21

22
func (e *entry) String() string {
×
23
        return string(e.Bytes)
×
24
}
×
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