(
{gen, data, it: {opts}}: KeywordCxt,
properties: string[],
missing: Name
)
| 14 | } |
| 15 | |
| 16 | export function checkMissingProp( |
| 17 | {gen, data, it: {opts}}: KeywordCxt, |
| 18 | properties: string[], |
| 19 | missing: Name |
| 20 | ): Code { |
| 21 | return or( |
| 22 | ...properties.map((prop) => |
| 23 | and(noPropertyInData(gen, data, prop, opts.ownProperties), _`${missing} = ${prop}`) |
| 24 | ) |
| 25 | ) |
| 26 | } |
| 27 | |
| 28 | export function reportMissingProp(cxt: KeywordCxt, missing: Name): void { |
| 29 | cxt.setParams({missingProperty: missing}, true) |
no test coverage detected
searching dependent graphs…