()
| 8 | } |
| 9 | |
| 10 | func main() { |
| 11 | b := []byte{130, 161, 105, 1, 161, 115, 161, 50} |
| 12 | |
| 13 | var e2 Example |
| 14 | extra, err := e2.UnmarshalMsg(b) |
| 15 | if err != nil { |
| 16 | panic(err) |
| 17 | } |
| 18 | if len(extra) != 0 { |
| 19 | panic("unexpected extra") |
| 20 | } |
| 21 | |
| 22 | if e2.I != 1 || e2.S != "2" { |
| 23 | panic("not equal") |
| 24 | } |
| 25 | |
| 26 | println("done, len(b):", len(b)) |
| 27 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…