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

Adding compiler warnings for empty test asserts in alloy service #3286

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vijaylather
Copy link

What type of PR is this?

Bug Fix

What does this PR do / why is it needed ?

Adding compiler warnings for empty test asserts in alloy service

@vijaylather vijaylather requested a review from a team as a code owner December 2, 2024 10:04
Copy link

linux-foundation-easycla bot commented Dec 2, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@@ -221,6 +221,11 @@ public static Root_meta_legend_service_metamodel_Test processServiceTest(Service
throw new EngineException("Test does not match execution type", serviceTest.sourceInformation, EngineErrorType.COMPILATION);
}
SingleExecutionTest singleExecutionTest = (SingleExecutionTest) serviceTest;

if (singleExecutionTest.asserts != null && singleExecutionTest.asserts.isEmpty())
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not this be an or... is null or is empty? Same on the multi-execution check.

Copy link
Author

Choose a reason for hiding this comment

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

I will make the above change and create the merge request again. Thanks!

Copy link
Author

Choose a reason for hiding this comment

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

I have done the change.

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