hedgehog-extras-0.4.1.0: Supplemental library for hedgehog
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hedgehog.Extras.Test.Network

Synopsis

Documentation

doesFileExists :: (MonadTest m, MonadIO m, HasCallStack) => FilePath -> m Bool Source #

Test if a file exists

isPortOpen :: (MonadTest m, MonadIO m, HasCallStack) => Int -> m Bool Source #

Test if a port is open

doesSocketExist :: (MonadTest m, MonadIO m, HasCallStack) => FilePath -> m Bool Source #

Test if a socket file exists

assertFileExists :: (MonadTest m, MonadIO m, HasCallStack) => FilePath -> m () Source #

Assert that a file exists

assertPortOpen :: (MonadTest m, MonadIO m, HasCallStack) => Int -> m () Source #

Assert that a port is open

assertSocketExists :: (MonadTest m, MonadIO m, HasCallStack) => FilePath -> m () Source #

Assert that a socket file exists is open

doesSprocketExist :: (MonadTest m, MonadIO m, HasCallStack) => Sprocket -> m Bool Source #

Test if the sprocket exists