test: Provide generators of corrupted values #107

Open
opened 2025-12-28 18:07:01 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Jun 2, 2022).

We have generators of random values in test sub-packages. Currently they generate random instances. I propose to extend functionality:

  1. Make existing generators to return instances which are valid in NeoFS API V2 protocol.
  2. Provide functions which accept protocol message and make it corrupted (e.g. change length of fixed-len field). This would be useful for ReadFromV2 testing.
  3. Provide functions which accept valid protocol message and change it a bit w/o protocol violation. This would be useful for Sign/Verify testing.
Originally created by @cthulhu-rider on GitHub (Jun 2, 2022). We have generators of random values in `test` sub-packages. Currently they generate random instances. I propose to extend functionality: 1. Make existing generators to return instances which are valid in NeoFS API V2 protocol. 2. Provide functions which accept protocol message and make it corrupted (e.g. change length of fixed-len field). This would be useful for `ReadFromV2` testing. 3. Provide functions which accept valid protocol message and change it a bit w/o protocol violation. This would be useful for `Sign/Verify` testing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-sdk-go#107
No description provided.