1{-# LANGUAGE OverloadedStrings, NoImplicitPrelude #-}
2module Stackage.PackageIndexSpec (spec) where
4import Stackage.PackageIndex
7import Distribution.Package (packageId)
11 it "works" $ (runResourceT $ sourcePackageIndex $$ sinkNull :: IO ())
12 it "getLatestDescriptions gives reasonable results" $ do
13 let f x y = (display x, display y) `member` asSet (setFromList
14 [ (asText "base", asText "4.5.0.0")
15 , ("does-not-exist", "9999999999999999999")
17 m <- getLatestDescriptions f return
19 p <- simpleParse $ asText "base"
20 v <- simpleParse $ asText "4.5.0.0"
21 (pkgVersion . packageId <$> m) `shouldBe` singletonMap p v
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list