Module

Test.Ctl.Utils

#aesonRoundTrip

aesonRoundTrip :: forall (a :: Type). Eq a => Show a => DecodeAeson a => EncodeAeson a => a -> Either JsonDecodeError a

#assertTrue

assertTrue :: forall (m :: Type -> Type). Applicative m => MonadEffect m => String -> Boolean -> m Unit

Test a boolean value, throwing the provided string as an error if false

#assertTrue_

assertTrue_ :: forall (m :: Type -> Type). Applicative m => MonadEffect m => Boolean -> m Unit

#errEither

errEither :: forall (m :: Type -> Type) (a :: Type) (e :: Type). MonadEffect m => Show e => Either e a -> m a

#errMaybe

errMaybe :: forall (m :: Type -> Type) (a :: Type). MonadEffect m => String -> Maybe a -> m a

#measure

measure :: forall (m :: Type -> Type) (a :: Type). MonadEffect m => m a -> m a

#measure'

measure' :: forall (m :: Type -> Type) (d :: Type) (a :: Type). MonadEffect m => Duration d => Maybe d -> m a -> m a

#measureWithTimeout

measureWithTimeout :: forall (m :: Type -> Type) (d :: Type) (a :: Type). MonadEffect m => Duration d => d -> m a -> m a

#readAeson

readAeson :: forall (m :: Type -> Type). MonadEffect m => FilePath -> m Aeson

#toFromAesonTest

toFromAesonTest :: forall (a :: Type). Eq a => DecodeAeson a => EncodeAeson a => Show a => String -> a -> TestPlanM (Aff Unit) Unit

#toFromAesonTestWith

toFromAesonTestWith :: forall (a :: Type). Eq a => DecodeAeson a => EncodeAeson a => Show a => String -> (a -> a) -> a -> TestPlanM (Aff Unit) Unit

#fromBytesEffect

fromBytesEffect :: forall (a :: Type). IsCsl a => IsBytes a => ByteArray -> Effect a

Modules