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

fuzzing: empty RLum.Results object #448

Closed
mcol opened this issue Nov 20, 2024 · 0 comments · Fixed by #449
Closed

fuzzing: empty RLum.Results object #448

mcol opened this issue Nov 20, 2024 · 0 comments · Fixed by #449

Comments

@mcol
Copy link
Contributor

mcol commented Nov 20, 2024

This script:

library(CBTF)
ignore.patterns <- NULL
funs <- get_exported_functions("Luminescence",
                               c("Analyse_SAR.OSLdata",
                                 "calc_MaxDose",
                                 "get_Quote",
                                 "github_commits",
                                 "install_DevelopmentVersion",
                                 "plot_GrowthCurve",
                                 "show",
                                 "tune_Data"))
ignore.patterns <- c("Unknown 'data.object'",
                     "No valid records in",
                     "should be of class")

what <- set_RLum("RLum.Results")
fuzz(funs, what, ignore.patterns = ignore.patterns, ignore.warnings = FALSE)

Produces the following output:

	🚨   CAUGHT BY THE FUZZ!   🚨

FAIL: analyse_Al2O3C_CrossTalk ( RLum.Results )
    unused argument (recordType = "OSL (UVVIS)")

FAIL: calc_AverageDose ( RLum.Results )
    argument is of length zero

FAIL: calc_CosmicDoseRate ( RLum.Results )
    comparison (<) is possible only for atomic and list types

FAIL: calc_IEU ( RLum.Results )
    argument is of length zero

FAIL: convert_Daybreak2CSV ( RLum.Results )
    attempt to set an attribute on NULL

FAIL: convert_PSL2CSV ( RLum.Results )
    attempt to set an attribute on NULL

FAIL: convert_XSYG2CSV ( RLum.Results )
    attempt to set an attribute on NULL

FAIL: github_branches ( RLum.Results )
    no method for coercing this S4 class to a vector

FAIL: github_issues ( RLum.Results )
    no method for coercing this S4 class to a vector

FAIL: plot_DRTResults ( RLum.Results )
    subscript out of bounds

FAIL: plot_Histogram ( RLum.Results )
    'x' must be numeric

FAIL: plot_OSLAgeSummary ( RLum.Results )
    no method for coercing this S4 class to a vector

FAIL: set_RLum ( RLum.Results )
    no method for coercing this S4 class to a vector

WARN: sTeve
    calling par(new=TRUE) with no plot

FAIL: write_RLum2CSV ( RLum.Results )
    attempt to set an attribute on NULL

Part of #439.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant