Repository navigation
Conversation
equal(to:) had an Equatable overload and an AnyObject one that compares identity, so it was ambiguous for an Equatable class. The AnyObject overloads carried renamed: without deprecated, which did nothing. They're now deprecated in favour of sameInstance(as:) and disfavored, so an Equatable class compares with == and Cuckoo 2 code that compared other class instances still compiles, with a warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DefaultValueRegistry.register(value:forType:) and DefaultValues.register(_:for:) did the same with different shapes. The registry now has register(_:for:) too, with the type defaulting to the value's, and the old name is a deprecated forwarder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Neither is meant to be subclassed. ConcreteStub stays non-final, since ClassConcreteStub subclasses it; as a public, non-open class it can't be subclassed outside Cuckoo either way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The API changes from the pre-release audit (Tier 3) and the version bump: the last of four PRs for 3.0.0-beta.2, after #67, #68 and #69. Once it's merged, master is ready for the 3.0.0-beta.2 release.
Making matchers
Sendableis not in this release: it waits for main-actor matchers for main-actor mocks, soequal(to:)keeps working on types with main-actor-isolated conformances, as in new Xcode 26 projects.Changelog
equal(to:)for classes, and disfavor them:equal(to:)on anEquatableclass compares with==, andsameInstance(as:)matches the same instance.DefaultValueRegistry's registrationregister(_:for:), matchingDefaultValues.register(_:for:);register(value:forType:)is deprecated.ClassConcreteStubandMockBuilderfinal.version,Version.swift, the getting-started snippet and the changelog's section heading.Testing
swift testand theCuckooTestsscheme on the iOS simulator: pass, no warnings.swift testwith upcoming features off and on, and the Swift 6 fixture matrix (off, all on, Xcode 26 defaults): pass, no warnings. 13 intentional Swift Testing known issues.scripts/build-docs.sh: no docc warnings.