File: issue191_test.go

package info (click to toggle)
golang-github-tinylib-msgp 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 836 kB
  • sloc: makefile: 47
file content (16 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package _generated

import (
	"testing"
)

// Issue #191: panic in unsafe.UnsafeString()

func TestIssue191(t *testing.T) {
	b := []byte{0x81, 0xa0, 0xa0}
	var i Issue191
	_, err := (&i).UnmarshalMsg(b)
	if err != nil {
		t.Error(err)
	}
}