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 data frame #466

Closed
mcol opened this issue Nov 25, 2024 · 0 comments · Fixed by #467
Closed

fuzzing: empty data frame #466

mcol opened this issue Nov 25, 2024 · 0 comments · Fixed by #467

Comments

@mcol
Copy link
Contributor

mcol commented Nov 25, 2024

This script:

library(CBTF)
funs <- get_exported_functions("Luminescence",
                               c("Analyse_SAR.OSLdata",
                                 "calc_MaxDose",
                                 "get_Quote",
                                 "github_commits",
                                 "install_DevelopmentVersion",
                                 "plot_GrowthCurve",
                                 "show",
                                 "tune_Data"))
what <- data.frame()
fuzz(funs, what, ignore.patterns = NULL, ignore.warnings = TRUE)

Produces:

	🚨   CAUGHT BY THE FUZZ!   🚨

FAIL: analyse_FadingMeasurement ( data.frame )
    wrong sign in 'by' argument

FAIL: calc_CobbleDoseRate ( data.frame )
    undefined columns selected

FAIL: calc_FastRatio ( data.frame )
    undefined columns selected

FAIL: calc_FuchsLang2001 ( data.frame )
    subscript out of bounds

FAIL: calc_HomogeneityTest ( data.frame )
    subscript out of bounds

FAIL: calc_Huntley2006 ( data.frame )
    wrong sign in 'by' argument

FAIL: calc_MinDose ( data.frame )
    undefined columns selected

FAIL: calc_Statistics ( data.frame )
    undefined columns selected

FAIL: calc_WodaFuchs2008 ( data.frame )
    arguments imply differing number of rows: 0, 1

FAIL: convert_Wavelength2Energy ( data.frame )
    undefined columns selected

FAIL: CW2pHMi ( data.frame )
    undefined columns selected

FAIL: CW2pLM ( data.frame )
    undefined columns selected

FAIL: CW2pLMi ( data.frame )
    undefined columns selected

FAIL: CW2pPMi ( data.frame )
    undefined columns selected

FAIL: fit_CWCurve ( data.frame )
    undefined columns selected

FAIL: fit_DoseResponseCurve ( data.frame )
    subscript out of bounds

FAIL: fit_LMCurve ( data.frame )
    undefined columns selected

FAIL: fit_OSLLifeTimes ( data.frame )
    undefined columns selected

FAIL: fit_SurfaceExposure ( data.frame )
    'names' attribute [2] must be the same length as the vector [0]

FAIL: plot_DRTResults ( data.frame )
    undefined columns selected

FAIL: plot_ViolinPlot ( data.frame )
    undefined columns selected

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