Debian Codegraph @

encode_std_marshaler_go127_test.go

raw
1 //go:build go1.27
2
3 package json_test
4
5 import (
6 "testing"
7 "uuid"
8 )
9
10 func TestEncodeStdUUID(t *testing.T) {
11 id := uuid.UUID{0x12, 0x3e, 0x45, 0x67, 0xe8, 0x9b, 0x12, 0xd3, 0xa4, 0x56, 0x42, 0x66, 0x14, 0x17, 0x40, 0x00}
12 checkStdEncoding(t, id, &id, map[uuid.UUID]int{id: 1}, struct{ ID *uuid.UUID }{&id})
13 }