| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Hspec.Server
Documentation
type ServerName = String Source
class ServerType a where Source
Methods
name :: a -> ServerName Source
cmd :: a -> FilePath -> [String] -> String -> IO (ExitCode, String, String) Source
Instances
Constructors
| Localhost |
Constructors
| Ssh | |
data ServerExampleData dat Source
Constructors
| ServerExampleData | |
Fields
| |
type ServerExample dat = StateT (ServerExampleData dat) IO Source
type ServerSpec dat = Writer [ServerSpecTree dat] () Source
data ServerSpecTree dat Source
Constructors
| ServerSpecGroup String [ServerSpecTree dat] | |
| ServerSpecItem String (ServerExample dat ()) |
getServerData :: ServerType dat => ServerExample dat dat Source
sdescribe :: ServerType dat => String -> ServerSpec dat -> ServerSpec dat Source
serverSpecOS :: ServerType dat => dat -> ServerOS -> ServerSpec dat -> Spec Source
serverSpec :: ServerType dat => dat -> ServerSpec dat -> Spec Source
sit :: ServerType dat => String -> ServerExample dat () -> ServerSpec dat Source
data ServerStatus Source
Constructors
| SAnd (Set ServerStatus) | |
| Installed | |
| Enabled | |
| Running | |
| Listening | |
| Exit Int | |
| Stdout String | |
| Stderr String | |
| None |
Instances
includes' :: ServerType dat => ServerStatus -> ServerStatus -> ServerExample dat () Source
includes :: ServerType dat => ServerExample dat ServerStatus -> ServerStatus -> ServerExample dat () Source
package :: ServerType dat => String -> ServerExample dat ServerStatus Source
process :: ServerType dat => String -> ServerExample dat ServerStatus Source
service :: ServerType dat => String -> ServerExample dat ServerStatus Source
port :: ServerType dat => Int -> ServerExample dat ServerStatus Source
command :: ServerType dat => FilePath -> [String] -> String -> ServerExample dat ServerStatus Source