hpc-codecov 0.1.0.0 → 0.2.0.0
raw patch · 4 files changed
+25/−21 lines, 4 filesdep ~tastyPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: tasty
API changes (from Hackage documentation)
Files
- README.md +3/−4
- hpc-codecov.cabal +10/−5
- src/Trace/Hpc/Codecov/Report.hs +12/−12
- test/data/self.tar binary
README.md view
@@ -1,11 +1,10 @@-hpc-codecov-===========+# hpc-codecov [](https://hackage.haskell.org/package/hpc-codecov) [](https://www.stackage.org/lts/package/hpc-codecov) [](https://codecov.io/gh/8c6794b6/hpc-codecov)-[](https://travis-ci.org/8c6794b6/hpc-codecov)+[](https://travis-ci.com/8c6794b6/hpc-codecov) [](https://circleci.com/gh/8c6794b6/hpc-codecov) [](https://ci.appveyor.com/project/8c6794b6/hpc-codecov)+[](https://github.com/8c6794b6/hpc-codecov/actions?query=workflow%3Abuild) The ``hpc-codecov`` package contains an executable and library codes for generating [Codecov](https://codecov.io) JSON coverage report from
hpc-codecov.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.0 name: hpc-codecov-version: 0.1.0.0+version: 0.2.0.0 synopsis: Generate codecov report from hpc data license: BSD3 license-file: LICENSE@@ -15,9 +15,8 @@ The hpc-codecov package contains an executable and library codes for generating <https://codecov.io Codeocv> JSON coverage report from @.tix@ and @.mix@ files made with- <https://hackage.haskell.org/package/hpc hpc>- .- See <https://github.com/8c6794b6/hpc-codecov#readme README> for+ <https://hackage.haskell.org/package/hpc hpc>. See the+ <https://github.com/8c6794b6/hpc-codecov#readme README> for more info. extra-source-files:@@ -26,6 +25,12 @@ test/data/self.tar test/data/reciprocal.tar +tested-with: GHC == 8.2.2+ , GHC == 8.4.4+ , GHC == 8.6.5+ , GHC == 8.8.3+ , GHC == 8.10.1+ library hs-source-dirs: src exposed-modules: Trace.Hpc.Codecov.Error@@ -62,7 +67,7 @@ , hpc-codecov -- , tar >= 0.5 && < 0.6- , tasty >= 1.0 && < 1.3+ , tasty >= 1.0 && < 1.4 , tasty-hunit >= 0.8 && < 1.0 default-language: Haskell2010 ghc-options: -Wall -threaded -rtsopts
src/Trace/Hpc/Codecov/Report.hs view
@@ -70,9 +70,9 @@ { reportTix :: FilePath -- ^ Input tix file. , reportMixDirs :: [FilePath]- -- ^ Directory containing mix files referred by the tix file.+ -- ^ Directories containing mix files referred by the tix file. , reportSrcDirs :: [FilePath]- -- ^ Directory containing source codes referred by the mix files.+ -- ^ Directories containing source codes referred by the mix files. , reportExcludes :: [String] -- ^ Module name strings to exclude from coverage report. , reportOutFile :: Maybe FilePath@@ -127,6 +127,13 @@ wrap = maybe ($ stdout) (`withFile` WriteMode) mb_outfile emit = flip hPutBuilder (buildJSON entries) ++-- ------------------------------------------------------------------------+--+-- Internal+--+-- ------------------------------------------------------------------------+ -- | Build simple JSON report from coverage entries. buildJSON :: [CoverageEntry] -> Builder buildJSON entries = contents@@ -166,13 +173,6 @@ return (CoverageEntry { ce_filename = path' , ce_hits = lineHits }) ---- ------------------------------------------------------------------------------ Internal------ ------------------------------------------------------------------------- -- | Exclude modules specified in given 'Report'. excludeModules :: Report -> [TixModule] -> [TixModule] excludeModules rpt = filter exclude@@ -225,9 +225,9 @@ -- | Internal type used for accumulating mix entries. data Info =- Info {-# UNPACK #-} !Int -- ^ Index count- {-# UNPACK #-} !Int -- ^ Min line number- {-# UNPACK #-} !Int -- ^ Max line number+ Info {-# UNPACK #-} !Int -- ^ Index count+ {-# UNPACK #-} !Int -- ^ Min line number+ {-# UNPACK #-} !Int -- ^ Max line number ![(HpcPos, Tick)] -- ^ Pair of position and hit -- | Make line hits from intermediate info.
test/data/self.tar view
binary file changed (51200 → 51200 bytes)