(t *testing.T)
| 252 | } |
| 253 | |
| 254 | func TestSortableIdentifierSlice(t *testing.T) { |
| 255 | e1 := MyEntity1{} |
| 256 | e1.BasicEntity = NewBasic() |
| 257 | e2 := MyEntity1{} |
| 258 | e2.BasicEntity = NewBasic() |
| 259 | |
| 260 | var entities IdentifierSlice = []Identifier{e2, e1} |
| 261 | sort.Sort(entities) |
| 262 | assert.ObjectsAreEqual(e1, entities[0]) |
| 263 | assert.ObjectsAreEqual(e2, entities[1]) |
| 264 | } |
| 265 | |
| 266 | // TestSystemEntityFiltering checks that entities go into the right systems and the flags are obeyed |
| 267 | func TestSystemEntityFiltering(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…