Skip to content

Conversation

@bentahsin
Copy link
Owner

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds unit tests for the player behavior analysis system, which is designed to detect AFK (away from keyboard) behavior patterns. The tests cover both the data tracking component (PlayerBehaviorData) and the analysis logic component (BehaviorAnalysisTask).

Key changes:

  • Added PlayerBehaviorDataTest with tests for distance accumulation, radius violation reset, and full data reset
  • Added BehaviorAnalysisLogicTest with tests for confinement detection, fresh tracking reset, and AFK player bypass logic

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
AntiAFK-Core/src/test/java/com/bentahsin/antiafk/behavior/PlayerBehaviorDataTest.java Unit tests for PlayerBehaviorData class covering movement tracking, radius-based confinement reset, and data clearing functionality
AntiAFK-Core/src/test/java/com/bentahsin/antiafk/behavior/BehaviorAnalysisLogicTest.java Unit tests for BehaviorAnalysisTask covering confinement violation detection, fresh tracking period, and player state bypass logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bentahsin bentahsin merged commit ce12036 into master Dec 24, 2025
1 check passed
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