Skip to content

Rubberduck needs to FAKE ALL THE THINGS! #2891

@comintern

Description

@comintern

Rather than having separate issues for each VBA function that needs to have an IFake implementation, this meta feature-request should be used to track and prioritize functionality that needs to be faked. The PR with the framework shouldn't be much longer, so it's time to start tracking these. In general, we should probably prioritize functions that disrupt unit tests (like MsgBox and InputBox) so let's get those covered before adding more to the list. Note that the vbe7.dll doesn't have all of the type hinted variations, so just list the Variant version.

If you implement one of these, check it off. If you want to add a new one to the list (and have the permissions to do so), edit this comment.

TODO:

Interaction

  • MsgBox
  • InputBox
  • Timer
  • Beep
  • DoEvents

File system

  • Kill
  • FileCopy
  • MkDir
  • RmDir
  • Dir
  • ChDir
  • ChDrive
  • CurDir
  • EOF
  • FreeFile
  • FileAttr
  • FileDateTime
  • FileLen
  • GetAttr
  • SetAttr
  • Loc
  • LOF
  • Reset
  • Seek

Registry \ System

  • GetAllSettings
  • DeleteSetting
  • GetSetting
  • SaveSetting
  • Environ
  • IMEStatus
  • Now
  • Date
  • Time
  • SendKeys
  • Shell

Misc

  • Rnd
  • Randomize
  • VarPtr
  • ObjPtr
  • StrPtr

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty-02-duckyResolving these involves the internal API, but with relatively easy problems to solve.enhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-unit-testingmetaup-for-grabsUse this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions