test/nbt_read_write_helpers: Insufficient unit tests #43
Labels
No Label
Bug
Build Problems
Discussion
Distribution
Enhancement
Far Future
Fix Later
TODO
WONTFIX
Workflow
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BodgeMaster/FOSS-VG#43
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Test are needed for all read helpers that read a portion of data from the middle of a data blob.
I just ran into an issue with NBT::helper::readString which was coded under the assumption that dataSize is the size of the string. This would have been caught in a unit test trying to read a string from the middle of a blob of data.
Okay, it appears that the error stems from a misunderstanding in how the helpers are supposed to work more than no test catching it... One of the tests fails now that I have fixed the function.
The additional unit tests would still be nice to have. I will probably copy the simple NBT file in there and try reading from it.