( inputFormat: InputFormatField[], block: SerializedBlock )
| 186 | } |
| 187 | |
| 188 | function assertNoReservedInputFormatFields( |
| 189 | inputFormat: InputFormatField[], |
| 190 | block: SerializedBlock |
| 191 | ): void { |
| 192 | const reservedFieldNames = collectExecutionControlFieldNames( |
| 193 | inputFormat.map(readInputFormatFieldName) |
| 194 | ) |
| 195 | |
| 196 | if (reservedFieldNames.length === 0) { |
| 197 | return |
| 198 | } |
| 199 | |
| 200 | throwReservedStartOutputFieldsError(block, reservedFieldNames, 'input format') |
| 201 | } |
| 202 | |
| 203 | function assertNoReservedStartOutputFields( |
| 204 | output: NormalizedBlockOutput, |
no test coverage detected