(opts: { readonly id: string })
| 169 | }); |
| 170 | |
| 171 | const deleteObject = (opts: { readonly id: string }): Effect.Effect<void, TestWorkOSVaultError> => |
| 172 | Effect.gen(function* () { |
| 173 | const entry = [...objects.entries()].find(([, object]) => object.id === opts.id); |
| 174 | if (!entry) { |
| 175 | return yield* notFound(`Object "${opts.id}" not found`); |
| 176 | } |
| 177 | objects.delete(entry[0]); |
| 178 | }); |
| 179 | |
| 180 | const wrap = <A>( |
| 181 | operation: string, |
no test coverage detected