alexpghayes/modeltests

Add tests for input validation

alexpghayes opened this issue · 1 comments

tidy()

  • conf.int should be logical
  • conf.level should be greater than zero and less than 1
  • quick should be logical
  • etc

glance()

  • All arguments should be logical (I think? Pretty sure the only arguments are TRUE/FALSE switches that add more columns to the output)

augment()

  • data / newdata must be coercable to tibbles
  • type.predict and type.residuals should match.arg on the function they get passed to

All

  • All named arguments should get evaluated (see #6)

Probably the easiest way to test these would be write new tests in the vein of check_augment_function that take a specific method (i.e. tidy.Arima) and a fit model and see if they can break things.