You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Completeness tests: every Queryable operator and every BCL array allocator covered or waived #240
package/analyzersAffects CodoMetis.TypeKit.Analyzerspackage/efcoreAffects CodoMetis.TypeKit.EntityFrameworkCoretestsAdds or changes tests only (tests, probes, harnesses); no library code
A rule's reach was a hand-picked list of framework APIs, and each API left off it was a silent gap: CMTK0005 knew three allocators and missed Array.CreateInstance, CreateInstanceFromArrayType and ArrayPool<T>.Rent (#228); the EF ordering check knew Select and the operators that pass elements on but not GroupBy, Join or SelectMany (#206). NotWireTypeTests already holds the base package to a completeness check by reflection; these rules have none.
Proposal
Completeness tests that enumerate the host's API by reflection and fail on any member neither covered nor waived with a reason:
every Queryable method that takes a lambda or returns an element is an Op in QueryShapes or a waiver (an operator EF does not translate);
every public BCL method that creates a T[], Span<T> or Memory<T> from a length (Array, GC, ArrayPool<T>, MemoryPool<T>, CollectionsMarshal, ...) is reported by CMTK0005 for a value object or waived.
A new framework method then fails a test on the SDK bump that brings it, not a review months later.
Done when
Both tests exist, pass, and each fails when one covered member is removed from the rule (shown per verify-the-guard).
package/analyzersAffects CodoMetis.TypeKit.Analyzerspackage/efcoreAffects CodoMetis.TypeKit.EntityFrameworkCoretestsAdds or changes tests only (tests, probes, harnesses); no library code
Activity