(pattern: string)
| 116 | Effect.fail(new ToolkitError({ message })); |
| 117 | |
| 118 | const validatePolicyPattern = (pattern: string): Effect.Effect<void, ToolkitError> => |
| 119 | isValidPattern(pattern) |
| 120 | ? Effect.void |
| 121 | : Effect.fail( |
| 122 | new ToolkitError({ |
| 123 | message: `Invalid toolkit policy pattern: ${pattern}`, |
| 124 | }), |
| 125 | ); |
| 126 | |
| 127 | const comparePositioned = ( |
| 128 | a: Pick<ToolkitPolicyRecord, "id" | "position">, |
no test coverage detected