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

mlange-42 / ark-serde / 13605188436

01 Mar 2025 01:17PM CUT coverage: 89.222%. First build
13605188436

Pull #1

github

web-flow
Merge dfffb02a6 into 6d7682df1
Pull Request #1: Make it work properly with Ark

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

298 of 334 relevant lines covered (89.22%)

34.64 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 {
216✔
19
        e.Bytes = jsonData
216✔
20
        return nil
216✔
21
}
216✔
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