0 | module Evince.Async.Spec
2 | import Language.Reflection
3 | import Language.Reflection.TTImp
7 | %language ElabReflection
12 | itAsync : String -> Async e [] (TestResult ()) -> Spec (Async e []) a ()
13 | itAsync label action = MkSpec [< It label Nothing (\_ => action)] ()
17 | itAsyncWith : String -> (a -> Async e [] (TestResult ())) -> Spec (Async e []) a ()
18 | itAsyncWith label f = MkSpec [< It label Nothing f] ()
22 | xitAsync : String -> Lazy (Async e [] (TestResult ())) -> Spec (Async e []) a ()
23 | xitAsync label _ = MkSpec [< Pending label Nothing] ()
29 | itAsyncLoc : TTImp -> String -> Async e [] (TestResult ()) -> Elab (Spec (Async e []) a ())
30 | itAsyncLoc t label action =
31 | pure $
MkSpec [< It label (Just (fcToSrcLoc (getFC t))) (\_ => action)] ()