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

ExprPrefixSuffix Cleanup #6970

Merged
merged 9 commits into from
Oct 13, 2024

Conversation

Asleeepp
Copy link
Contributor

Description

I've cleaned up some bits in ExprPrefixSuffix, by adding a CompleteableFuture.runAsync, similar to ExprGroup, to prevent any possible stack traces from LuckPerms, i've also added a reset/delete changer.


Target Minecraft Versions: any
Requirements: none
Related Issues: none

Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

you should fix the method ordering while you're here, as well as switch to Jetbrains @nullable, remove finals from method params, and rename variables to reasonable names,

@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Aug 11, 2024
@Asleeepp Asleeepp requested a review from sovdeeth August 11, 2024 11:19
Copy link
Member

@UnderscoreTud UnderscoreTud left a comment

Choose a reason for hiding this comment

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

Could add some tests

@Asleeepp
Copy link
Contributor Author

Could add some tests

not sure how I do that for this, sorry 😬

@Asleeepp Asleeepp requested a review from UnderscoreTud August 11, 2024 18:00
@UnderscoreTud
Copy link
Member

Could add some tests

not sure how I do that for this, sorry 😬

https://github.com/SkriptLang/Skript/blob/master/src/test/skript/README.md

@EquipableMC
Copy link
Contributor

Could add some tests

not sure how I do that for this, sorry 😬

https://github.com/SkriptLang/Skript/blob/master/src/test/skript/README.md

I think what he means is how would he do tests for this expression exactly

@TheLimeGlass
Copy link
Contributor

TheLimeGlass commented Aug 12, 2024

You would use JUnit and EasyMock, and mock the Player.class to create a fake player. See ExprMessageTest for an example.

This change request can be void for this pull request due to the fact that the test environments don't run the Vault plugin.

@Asleeepp Asleeepp requested a review from sovdeeth August 14, 2024 22:27
@sovdeeth sovdeeth added feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. 2.10 Targeting a 2.10.X version release labels Aug 16, 2024
Asleeepp and others added 2 commits August 23, 2024 13:58
…Suffix.java

Co-authored-by: _tud <98935832+UnderscoreTud@users.noreply.github.com>
…Suffix.java

Co-authored-by: _tud <98935832+UnderscoreTud@users.noreply.github.com>
@Asleeepp Asleeepp requested a review from UnderscoreTud August 23, 2024 16:59
@sovdeeth sovdeeth merged commit 9ffced2 into SkriptLang:dev/feature Oct 13, 2024
5 checks passed
@Fusezion Fusezion mentioned this pull request Jan 4, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.10 Targeting a 2.10.X version release enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants