Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for theme elements #1959

Open
ddsjoberg opened this issue Sep 5, 2024 · 1 comment
Open

Add unit tests for theme elements #1959

ddsjoberg opened this issue Sep 5, 2024 · 1 comment

Comments

@ddsjoberg
Copy link
Owner

No description provided.

@Meghansaha
Copy link

List of individual theme elements that unit tests can be added for:

Elements that Modify Internal Behavior

Package-wide

  • pkgwide-fn:prependpvalue_fun
  • pkgwide-fn:pvalue_fun
  • pkgwide-lgl:quiet
  • pkgwide-str:ci.sep
  • pkgwide-str:language
  • pkgwide-str:print_engine
  • pkgwide-str:theme_name
  • pkgwide-fun:pre_conversion

add_global_p

  • add_global_p-str:type
  • add_global_p-str:type

add_p.tbl_summary

  • add_p.tbl_summary-attr:test.categorical
  • add_p.tbl_summary-attr:test.categorical.group_by2
  • add_p.tbl_summary-attr:test.categorical.low_count
  • add_p.tbl_summary-attr:test.continuous
  • add_p.tbl_summary-attr:test.continuous.group_by2
  • add_p.tbl_summary-attr:test.continuous_by2

add_p.tbl_svysummary

  • add_p.tbl_svysummary-attr:test.categorical
  • add_p.tbl_svysummary-attr:test.continuous

as_flex_table

  • as_flex_table-lst:addl_cmds

as_gt

  • as_gt-lst:addl_cmds

as_hux_table

  • as_hux_table.gtsummary-lst:addl_cmds

as_kable_extra

  • as_kable_extra-lst:addl_cmds

tbl_regression

  • tbl_regression-fn:addnl-fn-to-run
  • tbl_regression-lst:tidy_plus_plus
  • tbl_regression-str:coef_header
  • tbl_regression-str:ref_row_text

tbl_stack

  • tbl_stack-str:group_header

tbl_summary

  • tbl_summary-fn:addnl-fn-to-run
  • tbl_summary-fn:N_fun
  • tbl_summary-fn:percent_fun
  • tbl_summary-str:default_con_type
  • tbl_summary-str:missing_stat
  • tbl_summary-str:header-noby
  • tbl_summary-str:header-withby

tbl_svysummary

  • tbl_svysummary-fn:addnl-fn-to-run
  • tbl_svysummary-str:header-noby
  • tbl_svysummary-str:header-withby

add_difference

  • add_difference-fn:addnl-fn-to-run

Elements that Set Function Argument Defaults

add_p.tbl_cross

  • add_p.tbl_cross-arg:pvalue_fun
  • add_p.tbl_cross-arg:source_note
  • add_p.tbl_cross-arg:test

add_p.tbl_summary

  • add_p.tbl_summary-arg:test

add_p.tbl_svysummary

  • add_p.tbl_svysummary-arg:pvalue_fun
  • add_p.tbl_svysummary-arg:test

add_q

  • add_q-arg:method
  • add_q-arg:pvalue_fun

add_stat_label

  • add_stat_label-arg:location

as_kable

  • as_kable-arg:dots

style_number

  • style_number-arg:big.mark
  • style_number-arg:decimal.mark

tbl_regression

  • tbl_regression-arg:conf.level
  • tbl_regression-arg:conf.int
  • tbl_regression-arg:estimate_fun
  • tbl_regression-arg:add_estimate_to_reference_rows
  • tbl_regression-arg:tidy_fun

tbl_summary

  • tbl_summary-arg:digits
  • tbl_summary-arg:missing
  • tbl_summary-arg:missing_text
  • tbl_summary-arg:percent
  • tbl_summary-arg:sort
  • tbl_summary-arg:statistic
  • tbl_summary-arg:type
  • tbl_summary-arg:value

tbl_survfit

  • tbl_survfit-arg:statistic

tbl_svysummary

  • tbl_svysummary-arg:digits
  • tbl_svysummary-arg:label
  • tbl_svysummary-arg:missing
  • tbl_svysummary-arg:missing_text
  • tbl_svysummary-arg:percent
  • tbl_svysummary-arg:sort
  • tbl_svysummary-arg:statistic
  • tbl_svysummary-arg:type
  • tbl_svysummary-arg:value

##tbl_custom_summary

  • tbl_custom_summary-arg:digits
  • tbl_custom_summary-arg:label
  • tbl_custom_summary-arg:missing
  • tbl_custom_summary-arg:missing_text
  • tbl_custom_summary-arg:type
  • tbl_custom_summary-arg:value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants