Debian Codegraph @

encode_std_marshaler_go123_test.go

raw
1 //go:build go1.23
2
3 package json_test
4
5 import (
6 "crypto/x509"
7 "testing"
8 )
9
10 func TestEncodeStdOID(t *testing.T) {
11 oid, err := x509.ParseOID("1.2.840.113549.1.1.11")
12 if err != nil {
13 t.Fatal(err)
14 }
15 checkStdEncoding(t, oid, &oid, map[string]x509.OID{"sha256WithRSA": oid}, []x509.OID{oid})
16 }