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.

Copy link

github-actions bot commented Dec 5, 2024

Test Results

  1 016 files  ±0    1 016 suites  ±0   1h 46m 51s ⏱️ + 4m 35s
12 760 tests +3  12 651 ✔️ +3  109 💤 ±0  0 ±0 
18 753 runs  +3  18 644 ✔️ +3  109 💤 ±0  0 ±0 

Results for commit ea3c258. ± Comparison against base commit 539c610.

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