microsoft / react-native-winrt

Windows Runtime projection for React Native for Windows
MIT License
85 stars 11 forks source link

Test Coverage: Generic type generation #51

Open dunhor opened 3 years ago

dunhor commented 3 years ago

Generic types are generated on-demand. I.e. for scenarios where the type is visible to/usable by JS. We already cover a fair amount of this with the Collections tests, but we should be more explicit about testing specific scenarios. In particular, here are scenarios where we should generate generic specializations:

dunhor commented 3 years ago

While debugging a different issue, I thought of a somewhat interesting scenario. Consider a type Foo which requires a generic interface - say IVector<Foo>. We should validate that scenarios like this don't lead us down an infinite recursive path (idk if it will, but I can't convince myself immediately that we handle it gracefully)