Projects STRLCPY dnstt Commits ebb82e62
🤬
  • ■ ■ ■ ■ ■ ■
    dns/dns_test.go
    skipped 37 lines
    38 38   {[][]byte{[]byte("test")}, nil, "test"},
    39 39   {[][]byte{[]byte("a"), []byte("b"), []byte("c")}, nil, "a.b.c"},
    40 40   
    41  - {[][]byte{[]byte{}}, ErrZeroLengthLabel, ""},
    42  - {[][]byte{[]byte("a"), []byte{}, []byte("c")}, ErrZeroLengthLabel, ""},
     41 + {[][]byte{{}}, ErrZeroLengthLabel, ""},
     42 + {[][]byte{[]byte("a"), {}, []byte("c")}, ErrZeroLengthLabel, ""},
    43 43   
    44 44   // 63 octets.
    45 45   {[][]byte{[]byte("0123456789abcdef0123456789ABCDEF0123456789abcdef0123456789ABCDE")}, nil,
    skipped 364 lines
    410 410   
    411 411  func TestMessageWireFormatRoundTrip(t *testing.T) {
    412 412   for _, message := range []Message{
    413  - Message{
     413 + {
    414 414   ID: 0x1234,
    415 415   Flags: 0x0100,
    416 416   Question: []Question{
    skipped 91 lines
    508 508   
    509 509  func TestRDataTXTRoundTrip(t *testing.T) {
    510 510   for _, p := range [][]byte{
    511  - []byte{},
     511 + {},
    512 512   []byte("\x00"),
    513 513   {
    514 514   0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
    skipped 26 lines
Please wait...
Page is in error, reload to recover