formatting
This commit is contained in:
parent
9ccb7203e4
commit
bc02a2f75a
1 changed files with 4 additions and 2 deletions
|
@ -154,8 +154,10 @@ instance (KnownSymbol s, HasMock rest) => HasMock (MatrixFlag s :> rest) where
|
|||
instance (KnownSymbol h, FromText a, HasMock rest) => HasMock (Header h a :> rest) where
|
||||
mock _ = \_ -> mock (Proxy :: Proxy rest)
|
||||
|
||||
instance (HasMock rest, AuthData authdata, Arbitrary usr) => HasMock (AuthProtect authdata (usr :: *) 'Lax :> rest) where
|
||||
mock _ = laxProtect (\_ -> do { a <- generate arbitrary; return (Just a)}) (\_ -> mock (Proxy :: Proxy rest))
|
||||
instance (HasMock rest, AuthData authdata, Arbitrary usr)
|
||||
=> HasMock (AuthProtect authdata (usr :: *) 'Lax :> rest) where
|
||||
mock _ = laxProtect (\_ -> do { a <- generate arbitrary; return (Just a)})
|
||||
(\_ -> mock (Proxy :: Proxy rest))
|
||||
|
||||
instance (HasMock rest, Arbitrary usr, KnownSymbol realm)
|
||||
=> HasMock (AuthProtect (BasicAuth realm) (usr :: *) 'Strict :> rest) where
|
||||
|
|
Loading…
Reference in a new issue