(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func 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 | |
| 32 | type simpleEntity struct { |
| 33 | BasicEntity |
nothing calls this directly
no test coverage detected
searching dependent graphs…