Skip to content

Allow mockable/predictable now() #754

Open
@rossb83

Description

@rossb83

Its hard to test out programs that rely on time for example:

now().Sub(StartTime) >= 40*duration("24h")

Would it be possible to allow a testing option for now() to give a predictable/settable time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions