Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rely on macro api in terms of conformances to make #4

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

mikhailmaslo
Copy link
Owner

At the same time, protocols provided by macro are always empty for tests, so we have to add __testing__ tag to all sut

Before those changes macro couldn't detect such conformances

@Codable // Codable should conform only to Decodable, since Encodable is already provided by user
struct Example {
}

extension Example: Encodable { ... }

Using macro api which provides which conformances macro should generate resolve the case above

At the same time, protocols provided by macro are always empty for tests, so we have to add __testing__ tag to all sut
@mikhailmaslo mikhailmaslo changed the title Use provided protocols conformances by macro Rely on macro api in terms of conformances to make Oct 8, 2023
@mikhailmaslo mikhailmaslo merged commit f3bb822 into main Oct 8, 2023
@mikhailmaslo mikhailmaslo deleted the feature/add-conformance-diagnostic branch October 8, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant