MCPcopy Create free account
hub / github.com/goadesign/goa / recExample

Method recExample

expr/user_type.go:92–102  ·  view source on GitHub ↗
(r *ExampleGenerator)

Source from the content-addressed store, hash-verified

90}
91
92func (u *UserTypeExpr) recExample(r *ExampleGenerator) *any {
93 if ex, ok := r.PreviouslySeen(u.ID()); ok {
94 return ex
95 }
96 var ex any
97 pex := &ex
98 r.HaveSeen(u.ID(), pex)
99 actual := u.AttributeExpr.Example(r)
100 *pex = actual
101 return pex
102}

Callers 1

ExampleMethod · 0.95

Calls 4

IDMethod · 0.95
PreviouslySeenMethod · 0.80
HaveSeenMethod · 0.80
ExampleMethod · 0.65

Tested by

no test coverage detected