ax(ueps): remove prose inline comments that restate code intent
AX Principle 2: comments must be usage examples, not prose descriptions. "Corrupt the last byte of the payload/frame" restates what the adjacent code does rather than demonstrating a call with concrete values. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
27f10dd252
commit
dd981edea9
2 changed files with 0 additions and 2 deletions
|
|
@ -134,7 +134,6 @@ func TestPacket_MarshalAndSign_Ugly(t *testing.T) {
|
|||
t.Fatalf("MarshalAndSign failed: %v", err)
|
||||
}
|
||||
|
||||
// Corrupt the last byte of the frame (part of the payload)
|
||||
corrupted := make([]byte, len(frame))
|
||||
copy(corrupted, frame)
|
||||
corrupted[len(corrupted)-1] ^= 0xFF
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ func TestReader_ReadAndVerify_Bad(t *testing.T) {
|
|||
t.Fatalf("MarshalAndSign failed: %v", err)
|
||||
}
|
||||
|
||||
// Corrupt the last byte of the payload
|
||||
corrupted := make([]byte, len(frame))
|
||||
copy(corrupted, frame)
|
||||
corrupted[len(corrupted)-1] ^= 0xFF
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue