Expected `result` to equal `expected`.
Differences:
target is NULL, current is character

"ggplot2::ggplot(data = data.frame(X = 1:10, stringsAsFactors = TRUE), mapping = ggplot2::aes(x = X)) + ggplot2::geom_histogram()"
"wilcox.test(c(1, 1, 3), c(1, 2, 4), paired = TRUE)"
"ggplot2::ggplot(data = data.frame(X = c(1:10, NA), stringsAsFactors = TRUE), mapping = ggplot2::aes(x = X)) + ggplot2::geom_histogram()"
"ggplot2::ggplot(data = data.frame(X = 'a', stringsAsFactors = FALSE), mapping = ggplot2::aes(x = X)) + ggplot2::geom_histogram()"
# to test if(function_name[1] == "::()" | function_name[1] == ":::()"){
# the function has default values for all args.
# weird. Return an error with .GlobalEnv
"ERROR MESSAGE REPORTED IN FUN1:\nIn wilcox.test.default(letters, c(1, 2, 4)) : 'x' must be numeric\n"
"ERROR MESSAGE REPORTED:\nIn wilcox.test.default(letters, c(1, 2, 4)) : 'x' must be numeric\n"
"Error in wilcox.test.default(letters, c(1, 2, 4)) : 'x' must be numeric\n"
"NO POTENTIAL STANDARD MESSAGE BECAUSE OF ERROR MESSAGE REPORTED IN FUN1"
"WARNING MESSAGE REPORTED:\nIn wilcox.test.default(c(1, 1, 3), c(1, 2, 4), paired = TRUE): cannot compute exact p-value with zeroes\n"
"simpleWarning in wilcox.test.default(c(1, 1, 3), c(1, 2, 4), paired = TRUE): cannot compute exact p-value with zeroes\n"
#the real message should be regexp = "STANDARD MESSAGE REPORTED:\nahah", but testthat::expect_message() evaluates through cat() and returns two lines, but only the second one is kept
"ERROR MESSAGE REPORTED:\nIn wilcox.test(letters, c(1, 2, 4)) : \n  could not find function \"wilcox.test\"\n"
'get_message(data = str6, kind = "warning", header = TRUE, print_no = FALSE, text = "IN FUN1", env = stats_env, safer_check = TRUE, lib_path = NULL, error_text = "")'
"ERROR MESSAGE REPORTED:\nIn base::eval(expr = base::parse(text = data, file = \"\", n = NULL,  : \n  object 'stats_env' not found\n"
"wilcox.test(c(1,1,3), c(1,2,4), paired = TRUE)"
# Also reaches it, even though no warning occurs
# to avoid a warning that block CRAN tests