package component_test // func TestNewComponent(t *testing.T) { // for i, want := range registryid.DataComponentType { // comp := component.NewComponent(int32(i)) // if got := comp.ID(); got != want { // t.Errorf("DataComponent type mismatched: %s != %s", got, want) // } // } // }