(t reflect.Type)
| 700 | } |
| 701 | |
| 702 | func assertStructPointer(t reflect.Type) error { |
| 703 | if t == nil { |
| 704 | return nil |
| 705 | } |
| 706 | |
| 707 | if t.Kind() != reflect.Pointer || t.Elem().Kind() != reflect.Struct { |
| 708 | return serviceerror.NewInternalf("only pointer to struct is supported for tree node value: got %s", t.String()) |
| 709 | } |
| 710 | return nil |
| 711 | } |
| 712 | |
| 713 | func (n *Node) initSerializedNode(ft fieldType) { |
| 714 | switch ft { |
no test coverage detected