Restored returns true if the test environment is restored from the last persisted environment
(ctx context.Context)
| 97 | |
| 98 | // Restored returns true if the test environment is restored from the last persisted environment |
| 99 | func 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 |
| 106 | func restoreInto(key string, val any) error { |
no outgoing calls
no test coverage detected