morpheus-graphql-tests-0.20.0: Morpheus GraphQL Test
Safe HaskellNone
LanguageHaskell2010

Test.Morpheus

Documentation

data FileUrl Source #

Instances

Instances details
Show FileUrl Source # 
Instance details

Defined in Test.Morpheus.File

ToString FileUrl Source # 
Instance details

Defined in Test.Morpheus.File

Methods

toString :: FileUrl -> String #

getAppsBy :: (Semigroup b, Show err, FromJSON resolvers) => (ByteString -> Either err schema, schema -> resolvers -> b) -> FileUrl -> IO b Source #

testApi :: (FromJSON req, ToJSON res) => (req -> IO res) -> FileUrl -> TestTree Source #

testSchema :: (ToJSON err, Eq err, FromJSON err) => (ByteString -> Either err a) -> FileUrl -> TestTree Source #

testQueryRendering :: (ToJSON errors, Show errors, FromJSON request) => (schema -> request -> Either errors ByteString, ByteString -> Either errors schema) -> FileUrl -> FileUrl -> TestTree Source #

testQuery :: (FromJSON req, ToJSON err, Eq err, FromJSON err) => (req -> Either err a) -> FileUrl -> TestTree Source #

testQueryValidation :: (ToJSON errors, Show errors, FromJSON request, FromJSON errors, Eq errors) => (schema -> request -> Either errors a, ByteString -> Either errors schema) -> FileUrl -> FileUrl -> TestTree Source #