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

mlange-42 / arche-serde / 7482715465

11 Jan 2024 12:52AM CUT coverage: 83.197% (-0.6%) from 83.766%
7482715465

Pull #3

github

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

203 of 244 relevant lines covered (83.2%)

28.85 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      entry
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 {
20✔
18
        e.Bytes = jsonData
20✔
19
        return nil
20✔
20
}
20✔
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