Skip to content

Add tests for TopHelperMessageListener - #661

Merged
Nxllpointer merged 13 commits into
developfrom
test/top-helper-anticheat-test
Nov 5, 2022
Merged

Nxllpointer merged 13 commits into
developfrom
test/top-helper-anticheat-test

Conversation

@Nxllpointer

@Nxllpointer Nxllpointer commented Oct 26, 2022 •

Copy link
Copy Markdown
Contributor

Adds tests for the TopHelperMessageListener checks and anticheat. This is important because if the Top-Helper system fails, track of the helpers messages is lost.

@Nxllpointer
Nxllpointer requested review from a team as code owners October 26, 2022 18:03
@Nxllpointer Nxllpointer self-assigned this Oct 26, 2022
@Nxllpointer Nxllpointer added enhancement New feature or request priority: low labels Oct 26, 2022

@Zabuzard Zabuzard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good stuff. Just some minor things.

Even better would be to test more of the code though, like a full method.

But thats also better than nothing 👍

@Nxllpointer

Nxllpointer commented Oct 27, 2022 •

Copy link
Copy Markdown
Contributor Author

Even better would be to test more of the code though, like a full method.

@Zabuzard you mean sending a fake message and checking the database entry?

@Zabuzard

Copy link
Copy Markdown
Member

that would be the ultimate test, yes.

but it would also already help if there would be some sort of countMessageLength method and you would test that.

@Nxllpointer Nxllpointer changed the title Add test for top-helper-anticheat Add tests for TopHelperMessageListener Oct 27, 2022
@Nxllpointer

Copy link
Copy Markdown
Contributor Author

Ok i changed pretty much everything. Tests now also include the checks if a message is supposed count.

@Nxllpointer

Copy link
Copy Markdown
Contributor Author

Ok great. I took a look at the JDATester and implemented support for thread channels. You can now specify your ChannelType in createMessageReceiveEvent

@Nxllpointer
Nxllpointer requested a review from Zabuzard October 30, 2022 01:42
@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2022

Copy link
Copy Markdown

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Nxllpointer
Nxllpointer dismissed Tais993’s stale review November 5, 2022 12:51

Everything resolved without margin for further questions

@Nxllpointer
Nxllpointer merged commit d523945 into develop Nov 5, 2022
@Nxllpointer
Nxllpointer deleted the test/top-helper-anticheat-test branch November 5, 2022 12:55
@Zabuzard Zabuzard mentioned this pull request Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants