Skip to content

Three refusals of the contract and the store have no test that fails without them, and the ordering test cannot fail #52

Closed

Description

@CaffeinatedCoder

Found by the analysis of #46, which removed each guard in a scratch copy and ran the kernel tests.

Guards with no failing test

  • A contributor with no placement. Removing the Placement is null refusal in SchemaContributorRegistry passes every test. No test mentions its message.
  • ImpactOf returning null. Removing the refusal in the base class passes every test; Plan returned null has one, ImpactOf returned null has none.
  • A property written twice in a stored value, such as "nullsDistinct":false,"nullsDistinct":true. Since feat: the contributor contract and the declaration store, where a declaration never replaces another #46 the reader refuses it, because the value no longer equals what was read, but no test holds that, and the message is the one for a Read that changed the declaration.

A test that cannot fail

The_read_model_is_ordered_by_key_whatever_the_order_of_declaration passes with the OrderBy in SchemaDeclarationExtensions.Stored removed: EF Core already returns annotations sorted by name. The order is still right; the test just does not hold the line it is named for.

Done when

Each of the three refusals has a test shown to fail without it. The ordering test either fails without the OrderBy (for instance against an entity type whose annotations are not sorted) or the OrderBy and the test's claim are both dropped, with the reason written down.

Activity

  1. added this to the 11.0.0 milestone on Nov 11, 2026
  2. added
    tests
    package/core
    area/migrations
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/migrationspackage/coretests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions