19
									
								
								codec_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								codec_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| package jsonpb | ||||
|  | ||||
| import ( | ||||
| 	"bytes" | ||||
| 	"testing" | ||||
| ) | ||||
|  | ||||
| func TestReadBody(t *testing.T) { | ||||
| 	t.Skip("skip without proto message") | ||||
| 	s := &struct { | ||||
| 		Name string | ||||
| 	}{} | ||||
| 	c := NewCodec() | ||||
| 	b := bytes.NewReader(nil) | ||||
| 	err := c.ReadBody(b, s) | ||||
| 	if err != nil { | ||||
| 		t.Fatal(err) | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user