Repository navigation
test: six tests assert the rule they are named for - #147
Merged
Merged
Conversation
Each of them passed with its rule broken (#107): it counted operations, compared types, or compared two catalogs that agree when both are wrong. - C04_has_differences_sees_the_declaration: a model pair that differs in the declaration only, so the inner differ's own answer is "no changes". - The_inner_operations_are_passed_through_untouched: the operations as migrations add writes them, with every name, column and annotation. - Every_kind_of_object_has_a_scope: Claims is asked for every kind, on three providers, and the rows of The_default_scopes are held to the enum. - A_name_that_differs_in_case_is_another_name: the statement. - A_deferrable_constraint_checked_at_commit_is_not_one_checked_at_once: no operations against the model that declares the same deferral. A rebuild's statements show the target alone, so they say nothing about what the reader read. - Changing_the_deferral: both ways, by the catalog's text. Closes #107 Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #107
Problem
Six tests passed with the rule they are named for broken. Each counted operations, compared types, or compared two catalogs that agree when both are wrong. None of them had been seeded when #107 was filed; seeded now, each passes on
mainwith its rule broken (the table is on #107).Change
Tests only.
WiringConditionTests.C04_has_differences_sees_the_declarationOperationOrderTests.The_inner_operations_are_passed_through_untouchedmigrations addwrites them into a migration (ICSharpMigrationOperationGenerator): every name, column and annotationNameClaimTests.Every_kind_of_object_has_a_scope(kernel)Claimsis asked for every member ofSchemaModelObject, on three providers, and each claim carries the object's name.The_default_scopes_are_stated_for_every_kindholds the rows ofThe_default_scopesto the enumNameClaimTests.A_name_that_differs_in_case_is_another_name(PostgreSQL)ComplexIndexes5xExclusionReaderTests.A_deferrable_constraint_checked_at_commit_is_not_one_checked_at_onceMovedModels.SlotUnderGistDeferred, new), and the two statements against the one that does notPgExclusionLiveTests.Changing_the_deferralThe fifth is not what #107 proposed. Asserting the two statements is not enough: the statements of a rebuild show the target alone, so they are the same whatever the reader took the source for. What was read shows only against the model that declares it.
Tests
Each defect seeded in a scratch copy of the repository, once under the test as it is on
mainand once under the test of this PR:mainSchemaKitModelDiffer.HasDifferencesreturns the inner differ's answerdeferrablewithinitiallyDeferredfor not deferrableCreatenever writes a deferralOn this branch: the three kernel classes (116 tests) and the three PostgreSQL classes (102, the live ones on PostgreSQL 18) pass. With #108's and #126's changes beside it, both projects pass in full on PostgreSQL 16 and 18.
🤖 Generated with Claude Code