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

[ruby] Move over dataflow tests #4514

Merged
merged 6 commits into from
May 2, 2024
Merged

Conversation

AndreiDreyer
Copy link
Contributor

Moved all of the dataflow tests to the new Ruby frontend from the deprecated one. Ignored the ones that aren't working for now, the next step is to start working on fixing those tests.

@AndreiDreyer AndreiDreyer added the ruby Relates to rubysrc2cpg label May 2, 2024
@AndreiDreyer AndreiDreyer self-assigned this May 2, 2024
@@ -50,6 +50,7 @@ null
slices.json
**/.antlr
/joern-cli/frontends/csharpsrc2cpg/bin
/joern-cli/frontends/rubysrc2cpg/type_stubs
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder for this rule and the one above, to instead just do

/joern-cli/frontends/*/bin
/joern-cli/frontends/*/type_stubs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll make a note to do this in the next PR, want to merge this one in so long so that I can start on fixing the DF tests.

sink.reachableByFlows(source).l.size shouldBe 3
}

// Works in deprecated - unable to parse SplattingArgumentIndexingArgument
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the notes. I'll make some issues on the Ruby board for this

@AndreiDreyer AndreiDreyer merged commit 8dfce2d into master May 2, 2024
5 checks passed
@DavidBakerEffendi DavidBakerEffendi deleted the andrei/ruby/dataflow-queries branch May 2, 2024 09:28
@DavidBakerEffendi DavidBakerEffendi linked an issue May 2, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Relates to rubysrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ruby] Migrate & Activate Dataflow Tests
2 participants