(t *testing.T)
| 736 | } |
| 737 | |
| 738 | func TestBindingBSON(t *testing.T) { |
| 739 | var obj FooStruct |
| 740 | obj.Foo = "bar" |
| 741 | data, _ := bson.Marshal(&obj) |
| 742 | testBodyBinding(t, |
| 743 | BSON, "bson", |
| 744 | "/", "/", |
| 745 | string(data), |
| 746 | // note: for badbody, we remove first byte to make it invalid |
| 747 | string(data[1:])) |
| 748 | } |
| 749 | |
| 750 | func TestValidationFails(t *testing.T) { |
| 751 | var obj FooStruct |
nothing calls this directly
no test coverage detected