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

Function Restored

acceptance/testenv/testenv.go:99–103  ·  view source on GitHub ↗

Restored returns true if the test environment is restored from the last persisted environment

(ctx context.Context)

Source from the content-addressed store, hash-verified

97
98// Restored returns true if the test environment is restored from the last persisted environment
99func Restored(ctx context.Context) bool {
100 restore, ok := ctx.Value(RestoreStubEnvironment).(bool)
101
102 return ok && restore
103}
104
105// RestoreValue returns the value associated with the given key from the last preserved environment
106func restoreInto(key string, val any) error {

Callers 2

PersistedFunction · 0.85
SetupStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected