Skip to content

test: enhance TestUUID with RFC 4122 v4 version/variant bits and regex format verification - #118

Open
aoright wants to merge 1 commit into
gorilla:mainfrom
aoright:test/uuid-rfc4122-v4-assertions
Open

test: enhance TestUUID with RFC 4122 v4 version/variant bits and regex format verification#118
aoright wants to merge 1 commit into
gorilla:mainfrom
aoright:test/uuid-rfc4122-v4-assertions

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • Update TestUUID in uuid_test.go to verify UUID v4 version bit (byte 6) and RFC 4122 variant bit (byte 8).
  • Add regular expression matching against canonical UUID v4 string format.
  • Compare dereferenced byte arrays (*s == *s2) to test value uniqueness across iterations.

…x format verification

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant