Skip to content

Commit

Permalink
spec: delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
develop7 committed Oct 6, 2023
1 parent 763887b commit b575ae2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/spec/SpecHelper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ matchHeaderAbsent name = MatchHeader $ \headers _body ->
Just _ -> Just $ "unexpected header: " <> toS (original name) <> "\n"
Nothing -> Nothing

matchHeaderPresent :: HeaderName -> MatchHeader
matchHeaderPresent name = MatchHeader $ \headers _body ->
case lookup name headers of
Just _ -> Nothing
Nothing -> Just $ "missing header: " <> toS (original name) <> "\n"

-- | Matches Server-Timing header has a well-formed metric with the given name
matchServerTimingHasTiming :: String -> MatchHeader
matchServerTimingHasTiming metric = MatchHeader $ \headers _body ->
Expand Down

0 comments on commit b575ae2

Please sign in to comment.