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

Support conditional branching in SE #5472

Merged
merged 6 commits into from
Mar 11, 2022

Conversation

pavel-mikula-sonarsource
Copy link
Contributor

Fixes #5308

Copy link
Contributor

@csaba-sagi-sonarsource csaba-sagi-sonarsource left a comment

Choose a reason for hiding this comment

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

Please add some more UTs.

Base automatically changed from Pavel/SE-OutRefByRef to master March 10, 2022 12:08
@pavel-mikula-sonarsource pavel-mikula-sonarsource changed the title Add UTs Support conditional branching in SE Mar 10, 2022
@pavel-mikula-sonarsource pavel-mikula-sonarsource force-pushed the Pavel/SE-ConditionalBranching branch from f973229 to 19f640b Compare March 10, 2022 14:16
@pavel-mikula-sonarsource pavel-mikula-sonarsource marked this pull request as ready for review March 10, 2022 14:16
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Tag(""End"");";
SETestContext.CreateCS(code).Validator.ValidateTagOrder(
"True",
"False", // This should not be here, switch statement produces BinaryOperatin with isTrue==true
Copy link
Contributor

Choose a reason for hiding this comment

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

Will you open an issue for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, there's MMF-2563 for it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And I might create a small PR for simple support

Copy link
Contributor Author

Choose a reason for hiding this comment

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

..more tricky than it looks: #5478 and #5480

false => false
};
Tag(""Value"", value);";
SETestContext.CreateCS(code).Validator.ValidateTag("Value", x => x.Should().BeNull()); // Should have BoolConstraint.True instead
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, do you plane to open an issue for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, there's MMF-2229 for it.

Copy link
Contributor

@csaba-sagi-sonarsource csaba-sagi-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM! I left two comments about opening issues, nonetheless the PR is good to go!

@pavel-mikula-sonarsource pavel-mikula-sonarsource merged commit 3a5ae4e into master Mar 11, 2022
@pavel-mikula-sonarsource pavel-mikula-sonarsource deleted the Pavel/SE-ConditionalBranching branch March 11, 2022 12:01
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.

Support conditional branching in SE
2 participants