MCPcopy Create free account
hub / github.com/conforma/cli / persistedKey

Function persistedKey

acceptance/testenv/testenv.go:139–143  ·  view source on GitHub ↗

persistedKey constructs a key in the form of type.value

(state S)

Source from the content-addressed store, hash-verified

137
138// persistedKey constructs a key in the form of type.value
139func persistedKey[S WithState](state S) string {
140 key := state.Key()
141
142 return fmt.Sprintf("%T.%v", key, key)
143}
144
145// SetupState initializes the given state S and stores it in Context under S.Key(), if invoked
146// twice for the same S.Key() the state will be set to the existing value from Context. If the

Callers 4

Test_PersistFunction · 0.85
SetupStateFunction · 0.85
FetchStateFunction · 0.85
HasStateFunction · 0.85

Calls 1

KeyMethod · 0.65

Tested by 1

Test_PersistFunction · 0.68