1module Main ( main ) where
5import Control.Exception
6import Distribution.Nixpkgs.License
7import Distribution.Nixpkgs.Meta
13 describe "DeepSeq instances work properly for" $ do
14 it "License" $ mapM_ hitsBottom [Known undefined, Unknown (Just undefined)]
15 it "Meta" $ do mapM_ hitsBottom
16 [ nullMeta & homepage .~ undefined
17 , nullMeta & description .~ undefined
18 , nullMeta & license .~ undefined
19 , nullMeta & platforms .~ undefined
20 , nullMeta & maintainers .~ undefined
21 , nullMeta & broken .~ undefined
24hitsBottom :: NFData a => a -> Expectation
25hitsBottom x = evaluate (rnf x) `shouldThrow` anyErrorCall
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