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

chore: Clean up tests #640

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions tests/testthat/_snaps/compat-lifecycle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# `scoped_lifecycle_silence()` snapshot test

Code
scoped_lifecycle_silence()

# `scoped_lifecycle_warnings()` snapshot test

Code
scoped_lifecycle_warnings()

# `scoped_lifecycle_errors()` snapshot test

Code
scoped_lifecycle_errors()

# `signal_superseded()` snapshot test

Code
signal_superseded()
Output
NULL

# `foreign_caller_env()` snapshot test

Code
foreign_caller_env()
Output
<environment: 0x11296c7d8>

8 changes: 8 additions & 0 deletions tests/testthat/_snaps/compat-purrr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# `negate()` snapshot test

Code
negate()
Output
function(...) !.p(...)
<environment: 0x1371d6510>

7 changes: 7 additions & 0 deletions tests/testthat/_snaps/dim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# `mult_sign()` snapshot test

Code
mult_sign()
Output
[1] "x"

15 changes: 15 additions & 0 deletions tests/testthat/_snaps/empty-data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# `style_empty()` snapshot test

Code
style_empty()
Output
[1] ""

# `new_empty_shaft()` snapshot test

Code
new_empty_shaft()
Output
<pillar_ornament>

27 changes: 27 additions & 0 deletions tests/testthat/_snaps/ggplot2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# `scale_x_num()` snapshot test

Code
scale_x_num()
Output
<ScaleContinuousPositionNum>
Range:
Limits: 0 -- 1

# `scale_y_num()` snapshot test

Code
scale_y_num()
Output
<ScaleContinuousPositionNum>
Range:
Limits: 0 -- 1

# `MakeScaleContinuousPositionNum()` snapshot test

Code
MakeScaleContinuousPositionNum()
Output
<ScaleContinuousPositionNum>
Range:
Limits: 0 -- 1

7 changes: 7 additions & 0 deletions tests/testthat/test-aaa-options.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# make_option_impl --------------------------------------------------------------------

test_that("`make_option_impl()` snapshot test", {
expect_snapshot({
make_option_impl()
})
})
25 changes: 25 additions & 0 deletions tests/testthat/test-capital.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# pillar_capital ----------------------------------------------------------------------

test_that("`pillar_capital()` snapshot test", {
expect_snapshot({
pillar_capital()
})
})


# new_pillar_capital ------------------------------------------------------------------

test_that("`new_pillar_capital()` snapshot test", {
expect_snapshot({
new_pillar_capital()
})
})


# format.pillar_capital ---------------------------------------------------------------

test_that("`format.pillar_capital()` snapshot test", {
expect_snapshot({
format()
})
})
106 changes: 106 additions & 0 deletions tests/testthat/test-char.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# char --------------------------------------------------------------------------------

test_that("`char()` snapshot test", {
expect_snapshot({
char()
})
})


# vec_ptype_full.pillar_char ----------------------------------------------------------

test_that("`vec_ptype_full.pillar_char()` snapshot test", {
expect_snapshot({
vec_ptype_full()
})
})


# vec_ptype_abbr.pillar_char ----------------------------------------------------------

test_that("`vec_ptype_abbr.pillar_char()` snapshot test", {
expect_snapshot({
vec_ptype_abbr()
})
})


# format.pillar_char ------------------------------------------------------------------

test_that("`format.pillar_char()` snapshot test", {
expect_snapshot({
format()
})
})


# set_char_opts -----------------------------------------------------------------------

test_that("`set_char_opts()` snapshot test", {
expect_snapshot({
set_char_opts()
})
})


# format.pillar_char_attr -------------------------------------------------------------

test_that("`format.pillar_char_attr()` snapshot test", {
expect_snapshot({
format()
})
})


# vec_ptype2.pillar_char.pillar_char --------------------------------------------------

test_that("`vec_ptype2.pillar_char.pillar_char()` snapshot test", {
expect_snapshot({
vec_ptype2.pillar_char()
})
})


# vec_ptype2.pillar_char.character ----------------------------------------------------

test_that("`vec_ptype2.pillar_char.character()` snapshot test", {
expect_snapshot({
vec_ptype2.pillar_char()
})
})


# vec_ptype2.character.pillar_char ----------------------------------------------------

test_that("`vec_ptype2.character.pillar_char()` snapshot test", {
expect_snapshot({
vec_ptype2.character()
})
})


# vec_cast.pillar_char.pillar_char ----------------------------------------------------

test_that("`vec_cast.pillar_char.pillar_char()` snapshot test", {
expect_snapshot({
vec_cast.pillar_char()
})
})


# vec_cast.character.pillar_char ------------------------------------------------------

test_that("`vec_cast.character.pillar_char()` snapshot test", {
expect_snapshot({
vec_cast.character()
})
})


# vec_cast.pillar_char.character ------------------------------------------------------

test_that("`vec_cast.pillar_char.character()` snapshot test", {
expect_snapshot({
vec_cast.pillar_char()
})
})
70 changes: 70 additions & 0 deletions tests/testthat/test-compat-lifecycle.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# scoped_lifecycle_silence ------------------------------------------------------------

test_that("`scoped_lifecycle_silence()` snapshot test", {
expect_snapshot({
scoped_lifecycle_silence()
})
})


# with_lifecycle_silence --------------------------------------------------------------

test_that("`with_lifecycle_silence()` snapshot test", {
expect_snapshot({
with_lifecycle_silence()
})
})


# scoped_lifecycle_warnings -----------------------------------------------------------

test_that("`scoped_lifecycle_warnings()` snapshot test", {
expect_snapshot({
scoped_lifecycle_warnings()
})
})


# with_lifecycle_warnings -------------------------------------------------------------

test_that("`with_lifecycle_warnings()` snapshot test", {
expect_snapshot({
with_lifecycle_warnings()
})
})


# scoped_lifecycle_errors -------------------------------------------------------------

test_that("`scoped_lifecycle_errors()` snapshot test", {
expect_snapshot({
scoped_lifecycle_errors()
})
})


# with_lifecycle_errors ---------------------------------------------------------------

test_that("`with_lifecycle_errors()` snapshot test", {
expect_snapshot({
with_lifecycle_errors()
})
})


# signal_superseded -------------------------------------------------------------------

test_that("`signal_superseded()` snapshot test", {
expect_snapshot({
signal_superseded()
})
})


# foreign_caller_env ------------------------------------------------------------------

test_that("`foreign_caller_env()` snapshot test", {
expect_snapshot({
foreign_caller_env()
})
})
Loading
Loading