TestIdentifierInterface makes sure that my entity can be stored as an Identifier interface
(t *testing.T)
| 242 | |
| 243 | // TestIdentifierInterface makes sure that my entity can be stored as an Identifier interface |
| 244 | func TestIdentifierInterface(t *testing.T) { |
| 245 | e1 := MyEntity1{} |
| 246 | e1.BasicEntity = NewBasic() |
| 247 | |
| 248 | var slice []Identifier = []Identifier{e1} |
| 249 | |
| 250 | _, ok := slice[0].(MyEntity1) |
| 251 | assert.True(t, ok, "MyEntity1 should have been recoverable from the Identifier interface") |
| 252 | } |
| 253 | |
| 254 | func TestSortableIdentifierSlice(t *testing.T) { |
| 255 | e1 := MyEntity1{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…