Learn R Programming

fuzzr (version 0.2.2)

test_all: Fuzz test inputs

Description

Each test_all returns a named list that concatenates all the available tests specified below.

Usage

test_all()

test_char()

test_int()

test_dbl()

test_lgl()

test_fctr()

test_date()

test_raw()

test_df()

test_null()

Arguments

Functions

  • test_char: Character vectors

    • char_empty: character(0)

    • char_single: "a"

    • char_single_blank: ""

    • char_multiple: c("a", "b", "c")

    • char_multiple_blank: c("a", "b", "c", "")

    • char_with_na: c("a", "b", NA)

    • char_single_na: NA_character_

    • char_all_na: c(NA_character_, NA_character_, NA_character_)

  • test_int: Integer vectors

    • int_empty: integer(0)

    • int_single: 1L

    • int_multiple: 1:3

    • int_with_na: c(1L, 2L, NA)

    • int_single_na: NA_integer_

    • int_all_na: c(NA_integer_, NA_integer_, NA_integer_)

  • test_dbl: Double vectors

    • dbl_empty: numeric(0)

    • dbl_single: 1.5

    • dbl_mutliple: c(1.5, 2.5, 3.5)

    • dbl_with_na: c(1.5, 2.5, NA)

    • dbl_single_na: NA_real_

    • dbl_all_na: c(NA_real_, NA_real_, NA_real_)

  • test_lgl: Logical vectors

    • lgl_empty: logical(0)

    • lgl_single: TRUE

    • lgl_mutliple: c(TRUE, FALSE, FALSE)

    • lgl_with_na: c(TRUE, NA, FALSE)

    • lgl_single_na: NA

    • lgl_all_na: c(NA, NA, NA)

  • test_fctr: Factor vectors

    • fctr_empty: structure(integer(0), .Label = character(0), class = "factor")

    • fctr_single: structure(1L, .Label = "a", class = "factor")

    • fctr_multiple: structure(1:3, .Label = c("a", "b", "c"), class = "factor")

    • fctr_with_na: structure(c(1L, 2L, NA), .Label = c("a", "b"), class = "factor")

    • fctr_missing_levels: structure(1:3, .Label = c("a", "b", "c", "d"), class = "factor")

    • fctr_single_na: structure(NA_integer_, .Label = character(0), class = "factor")

    • fctr_all_na: structure(c(NA_integer_, NA_integer_, NA_integer_), .Label = character(0), class = "factor")

  • test_date: Date vectors

    • date_single: as.Date("2001-01-01")

    • date_multiple: as.Date(c("2001-01-01", "1950-05-05"))

    • date_with_na: as.Date(c("2001-01-01", NA, "1950-05-05"))

    • date_single_na: as.Date(NA_integer_, origin = "1971-01-01")

    • date_all_na: as.Date(rep(NA_integer_, 3), origin = "1971-01-01")

  • test_raw: Raw vectors

    • raw_empty: raw(0)

    • raw_char: as.raw(0x62),

    • raw_na: charToRaw(NA_character_)

  • test_df: Data frames

    • df_complete: datasets::iris

    • df_empty: data.frame(NULL)

    • df_one_row: datasets::iris[1, ]

    • df_one_col: datasets::iris[ ,1]

    • df_with_na: iris with several NAs added to each column.

  • test_null: Null value

    • null_value: NULL