20 lines
252 B
Go
20 lines
252 B
Go
|
package proto
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestReadBody(t *testing.T) {
|
||
|
t.Skip("no proto generated")
|
||
|
s := &struct {
|
||
|
Name string
|
||
|
}{}
|
||
|
c := NewCodec()
|
||
|
b := bytes.NewReader(nil)
|
||
|
err := c.ReadBody(b, s)
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
}
|