Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
feat: renderPackage
Browse files Browse the repository at this point in the history
Co-authored-by: Roberto Abdelkader Martínez Pérez <[email protected]>
  • Loading branch information
panchoh and nilp0inter committed Apr 29, 2020
1 parent 2373a14 commit 0f1a0e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Text/DebianSecurityAnalyzer/Database.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ renderVulnerability :: CVE -> String
renderVulnerability CVE { name = n , description = d } = n ++ ",," ++ d

renderPackage :: String -> CVE -> Maybe String
renderPackage _ _ = undefined
renderPackage _ _ = Nothing
2 changes: 1 addition & 1 deletion test/Text/DebianSecurityAnalyzer/DatabaseSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec = do
}
in splitOn "," (renderVulnerability cve) `shouldBe` [name cve, "", description cve]
describe "renderPackage: CVE to debsecan's vulnerability format" $ do
it "should ignore unaffected packages" $
it "should ignore unaffected packages" $
let cve = CVE { name = "foo"
, description = "bar"
, priority = Nothing
Expand Down

0 comments on commit 0f1a0e8

Please sign in to comment.