blurite / rsprot

RSProt is an all-in-one networking package for RuneScape Private Servers, primarily targeted at the OldSchool scene.
MIT License
27 stars 5 forks source link

feat: implement konsist test to validate buffer sizes #18

Closed rileymichael closed 2 months ago

rileymichael commented 2 months ago

This introduces konsist (a static analyzer) in order to create a test suite to ensure that written buffer sizes (via buffer.p*) match the declared size. I've added the new suite (konsistTest) as a dependency of check, so it will automatically be ran alongside other check tasks.

A test container is created for each dynamically discovered module that defines a GameServerProt enum, and tests for each encoder are nested under it.

Screenshot 2024-06-28 at 5 46 51 PM

notes: