TestCreateEntity ensures IDs which are created, are unique
(t *testing.T)
| 186 | |
| 187 | // TestCreateEntity ensures IDs which are created, are unique |
| 188 | func TestCreateEntity(t *testing.T) { |
| 189 | e1 := MyEntity1{} |
| 190 | e1.BasicEntity = NewBasic() |
| 191 | |
| 192 | e2 := MyEntity1{} |
| 193 | e2.BasicEntity = NewBasic() |
| 194 | |
| 195 | assert.NotEqual(t, e1.id, e2.id, "BasicEntity IDs should be unique") |
| 196 | } |
| 197 | |
| 198 | // TestChangeableComponents ensures that Components which are being referenced, are changeable |
| 199 | func TestChangeableComponents(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…