FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow mockable/predictable now() · Issue #754 · expr-lang/expr · GitHub

/ expr Public

Allow mockable/predictable now() #754

Description

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


    Back | FazBrowse Home | New Git URL