insightsengineering / formatters

A framework for creating listings of raw data that include specialized formatting, headers, footers, referential footnotes, and pagination.
https://insightsengineering.github.io/formatters/
Other
15 stars 6 forks source link

allow content row in the end #226

Closed clarkliming closed 9 months ago

clarkliming commented 11 months ago

close #233

allow content row in the end.

for each row, if it is content row and it do not have any children, then allow it to be paginated at that position.

github-actions[bot] commented 11 months ago

Unit Tests Summary

  1 files    4 suites   7s :stopwatch:  36 tests  36 :white_check_mark: 0 :zzz: 0 :x: 242 runs  242 :white_check_mark: 0 :zzz: 0 :x:

Results for commit 7a184135.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 11 months ago

badge

Code Coverage Summary

Filename             Stmts    Miss  Cover    Missing
-----------------  -------  ------  -------  ------------------------------------------------------------------------------------------------------------------------
R/format_value.R       194      13  93.30%   88, 104-111, 191, 210, 281, 404, 415, 423
R/generics.R           105       7  93.33%   454, 466, 499, 528, 652-658
R/labels.R              55       7  87.27%   49, 55, 64, 105, 133, 142, 146
R/matrix_form.R        469      31  93.39%   425-426, 521, 534-537, 556, 588, 682-683, 698-703, 733-736, 769-770, 802-803, 835, 907, 958, 1009, 1012, 1016
R/mpf_exporters.R      224      96  57.14%   2, 83-85, 183, 223, 228, 411, 414, 420-423, 461-635
R/page_size.R           45       1  97.78%   174
R/pagination.R         570      45  92.11%   284-287, 372-384, 453, 525, 646-647, 652, 715-716, 737-747, 1051, 1058, 1086-1093, 1239-1240, 1252-1253, 1267-1268
R/tostring.R           571      38  93.35%   29-34, 91, 143, 212, 246, 254, 290, 347-350, 443-447, 454-459, 537, 644-645, 863, 878, 973, 1025, 1066, 1111, 1166, 1173
R/utils.R                3       0  100.00%
TOTAL                 2236     238  89.36%

Diff against main

Filename          Stmts    Miss  Cover
--------------  -------  ------  -------
R/pagination.R      +10     +16  -2.72%
TOTAL               +10     +16  -0.67%

Results for commit: 7a184135ca304acb17588ca49995495578302816

Minimum allowed coverage is 80%

:recycle: This comment has been updated with latest results