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

[swiftsrc2cpg] Implemented Actor/Async tests #4404

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

max-leuthaeuser
Copy link
Contributor

@max-leuthaeuser max-leuthaeuser commented Mar 26, 2024

Also put in proper method signatures and fullnames.

val List(f1, f2, f3) = cpg.typeDecl.where(_.aliasTypeFullName).l
f1.name shouldBe "AsyncFunc1"
f1.fullName shouldBe "Test0.swift:<global>:AsyncFunc1"
f1.aliasTypeFullName shouldBe Option("Test0.swift:<global>:_anon_cdecl_0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems this isn't new in this PR, but it would be good if these generated names had some invalid characters in them, to guarantee that they can't clash with names from actual code. (Like with <operator> and <lambda>.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

@max-leuthaeuser max-leuthaeuser merged commit 25806a4 into master Mar 27, 2024
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the max/moreSwiftTests branch March 27, 2024 17:25
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.

2 participants