MCPcopy Create free account
hub / github.com/codnect/procyon / creationStateFromContext

Function creationStateFromContext

component/state.go:60–62  ·  view source on GitHub ↗

creationStateFromContext gets the creationState from the context. It assumes the context contains a valid value.

(ctx context.Context)

Source from the content-addressed store, hash-verified

58// creationStateFromContext gets the creationState from the context.
59// It assumes the context contains a valid value.
60func creationStateFromContext(ctx context.Context) *creationState {
61 return ctx.Value(ctxCreationStateContextKey).(*creationState)
62}
63
64// putToPreparation adds the given name to the in-creation map.
65// Returns an error if it's already there (to prevent circular creation).

Callers 3

TestWithCreationStateFunction · 0.85
ResolveMethod · 0.85

Calls 1

ValueMethod · 0.65

Tested by 2

TestWithCreationStateFunction · 0.68