( call: Pick<Call, "callee" | "args"> & Partial<Pick<Call, "copies" | "ctx">> )
| 772 | } |
| 773 | |
| 774 | const describeCall = ( |
| 775 | call: Pick<Call, "callee" | "args"> & Partial<Pick<Call, "copies" | "ctx">> |
| 776 | ) => |
| 777 | `calls ${call.callee.name || "a function"}(${call.args |
| 778 | .map((arg, i) => |
| 779 | arg instanceof InternalTraversal ? |
| 780 | `ctx ${printable(call.ctx)}` |
| 781 | : printable( |
| 782 | call.copies?.[i] === uncopyable ? arg : (call.copies?.[i] ?? arg) |
| 783 | ) |
| 784 | ) |
| 785 | .join(", ")})` |
| 786 | |
| 787 | // thrown through the validator, which a mismatch in its calls stops |
| 788 | const mismatched = Symbol("mismatched") |
no test coverage detected