Liking cljdoc? Tell your friends :D

second-date.test-util


-do-with-clockclj

(-do-with-clock clock thunk)

Implementation for with-clock.

Implementation for [[with-clock]].
sourceraw docstring

-do-with-localeclj

(-do-with-locale locale-tag f)

Sets the default locale temporarily to locale-tag, then invokes f and reverts the locale change

Sets the default locale temporarily to `locale-tag`, then invokes `f` and reverts the locale change
sourceraw docstring

-do-with-system-timezone-idclj

(-do-with-system-timezone-id timezone-id thunk)

Implementation for with-system-timezone-id.

Implementation for [[with-system-timezone-id]].
sourceraw docstring

with-clockcljmacro

(with-clock clock & body)

Same as [[t/with-clock]], but adds [[testing]] context, and also supports using ZonedDateTime instances directly (converting them to a mock clock automatically).

(mt/with-clock #t "2019-12-10T00:00-08:00[US/Pacific]" ...)

Same as [[t/with-clock]], but adds [[testing]] context, and also supports using `ZonedDateTime` instances
directly (converting them to a mock clock automatically).

  (mt/with-clock #t "2019-12-10T00:00-08:00[US/Pacific]"
    ...)
sourceraw docstring

with-localecljmacro

(with-locale locale-tag & body)

Allows a test to override the locale temporarily

Allows a test to override the locale temporarily
sourceraw docstring

with-system-timezone-idcljmacro

(with-system-timezone-id timezone-id & body)

Execute body with the system time zone temporarily changed to the time zone named by timezone-id.

Execute `body` with the system time zone temporarily changed to the time zone named by `timezone-id`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close