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

mlange-42 / ark-serde / 13605689843

01 Mar 2025 02:22PM CUT coverage: 95.821%. Remained the same
13605689843

push

github

web-flow
Upgrade Ark (#2)

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

321 of 335 relevant lines covered (95.82%)

38.79 hits per line

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

100.0
/types.go
1
package arkserde
2

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

5
const targetTag = ".ark.relation.Target"
6

7
type deserializer struct {
8
        World      ecs.EntityDump
9
        Types      []string
10
        Components []entry
11
        Resources  map[string]entry
12
}
13

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

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

23
type component struct {
24
        ID     ecs.ID
25
        Comp   interface{}
26
        Target ecs.Entity
27
}
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