INNER CODE UNIT · Go

TestComponent

yohamta0/donburi-ecs · component_test.go:5

func TestComponent(t *testing.T) {
	c := NewComponentType[testComponentData](testComponentData{}, nil)
	if c.String() != "testComponentData" {
		t.Errorf("expected name testComponentData, got %s", c.String())
	}
}

type testComponentData struct{}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…