(tableSection: string)
| 531 | } |
| 532 | |
| 533 | function splitTableStream(tableSection: string): TableStreamParts { |
| 534 | const theadPart = sliceTagSection(tableSection, "thead"); |
| 535 | const tbodyPart = sliceTagSection(tableSection, "tbody"); |
| 536 | |
| 537 | const theadComplete = theadPart ? extractCompleteRows(theadPart) : []; |
| 538 | const tbodyComplete = tbodyPart ? extractCompleteRows(tbodyPart) : []; |
| 539 | |
| 540 | return { |
| 541 | theadComplete, |
| 542 | tbodyComplete, |
| 543 | theadPartial: extractPartialRow(theadPart, theadComplete), |
| 544 | tbodyPartial: extractPartialRow(tbodyPart, tbodyComplete), |
| 545 | }; |
| 546 | } |
| 547 | |
| 548 | function extractPartialRow( |
| 549 | section: string, |
no test coverage detected