MCPcopy Create free account
hub / github.com/temporalio/temporal / assertStructPointer

Function assertStructPointer

chasm/tree.go:702–711  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

700}
701
702func 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
713func (n *Node) initSerializedNode(ft fieldType) {
714 switch ft {

Callers 2

syncSubFieldMethod · 0.85
deserializeMethod · 0.85

Calls 2

KindMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected