|
|
@@ -67,6 +67,36 @@ type AnonInTestStrucIntf struct {
|
|
|
Tptr *time.Time
|
|
|
}
|
|
|
|
|
|
+type missingFielderT1 struct {
|
|
|
+ S string
|
|
|
+ B bool
|
|
|
+ f float64
|
|
|
+ i int64
|
|
|
+}
|
|
|
+
|
|
|
+func (t *missingFielderT1) CodecMissingField(field []byte, value interface{}) bool {
|
|
|
+ switch string(field) {
|
|
|
+ case "F":
|
|
|
+ t.f = value.(float64)
|
|
|
+ case "I":
|
|
|
+ t.i = value.(int64)
|
|
|
+ default:
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return true
|
|
|
+}
|
|
|
+
|
|
|
+func (t *missingFielderT1) CodecMissingFields() map[string]interface{} {
|
|
|
+ return map[string]interface{}{"F": t.f, "I": t.i}
|
|
|
+}
|
|
|
+
|
|
|
+type missingFielderT2 struct {
|
|
|
+ S string
|
|
|
+ B bool
|
|
|
+ F float64
|
|
|
+ I int64
|
|
|
+}
|
|
|
+
|
|
|
var testWRepeated512 wrapBytes
|
|
|
var testStrucTime = time.Date(2012, 2, 2, 2, 2, 2, 2000, time.UTC).UTC()
|
|
|
|