Skip to content

Commit

Permalink
75% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pachadotdev committed Jun 18, 2024
1 parent 16c1b84 commit f277de6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/testthat/test-apes.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ test_that("apes works", {

mod <- feglm(trade ~ lang | year, trade_short, family = binomial())

expect_output(print(mod))

expect_gt(length(coef(apes(mod))), 0)
expect_gt(length(coef(summary(apes(mod)))), 0)
expect_gt(length(coef(bias_corr(mod))), 0)
Expand Down
12 changes: 11 additions & 1 deletion tests/testthat/test-fepoisson.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,19 @@ test_that("fepoisson is similar to fixest", {

expect_equal(length(fes), 2)

smod <- summary(mod)

expect_gt(length(fitted(mod)), 0)
expect_gt(length(predict(mod)), 0)
expect_gt(length(coef(mod)), 0)
expect_gt(length(coef(summary(mod))), 0)
expect_gt(length(coef(smod)), 0)

expect_output(summary_formula_(smod))
expect_output(summary_family_(smod))
expect_output(summary_estimates_(smod, 3))
expect_output(summary_r2_(smod, 3))
expect_output(summary_nobs_(smod))
expect_output(summary_fisher_(smod))

})

0 comments on commit f277de6

Please sign in to comment.