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

Function TestSortableIdentifierSlice

entity_test.go:254–264  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

252}
253
254func 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
267func TestSystemEntityFiltering(t *testing.T) {

Callers

nothing calls this directly

Calls 1

NewBasicFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…