MCPcopy Create free account
hub / github.com/EngoEngine/ecs / TestWorld_AddSystemInterface

Function TestWorld_AddSystemInterface

world_test.go:7–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestWorld_AddSystemInterface(t *testing.T) {
8 type foo interface {
9 a() string
10 }
11 var fooInstance *foo
12 type args struct {
13 sys SystemAddByInterfacer
14 in interface{}
15 ex interface{}
16 }
17 tests := []struct {
18 name string
19 args args
20 }{
21 // {"adds individual interface", args{}},
22 {"adds multiple interfaces", args{nil, fooInstance, nil}},
23 }
24 for _, tt := range tests {
25 t.Run(tt.name, func(t *testing.T) {
26 w := new(World)
27 w.AddSystemInterface(tt.args.sys, tt.args.in, tt.args.ex)
28 })
29 }
30}
31
32type simpleEntity struct {
33 BasicEntity

Callers

nothing calls this directly

Calls 1

AddSystemInterfaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…