Skip to content

Instantly share code, notes, and snippets.

@whyrusleeping
Created September 14, 2014 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whyrusleeping/1e822fa55d018c589313 to your computer and use it in GitHub Desktop.
Save whyrusleeping/1e822fa55d018c589313 to your computer and use it in GitHub Desktop.
current ipfs code coverage
ok github.com/jbenet/go-ipfs/bitswap 0.140s coverage: 14.6% of statements
? github.com/jbenet/go-ipfs/blocks [no test files]
ok github.com/jbenet/go-ipfs/blockservice 0.011s coverage: 61.3% of statements
? github.com/jbenet/go-ipfs/cmd/ipfs [no test files]
ok github.com/jbenet/go-ipfs/config 0.013s coverage: 32.1% of statements
ok github.com/jbenet/go-ipfs/core 9.705s coverage: 58.3% of statements
? github.com/jbenet/go-ipfs/core/commands [no test files]
? github.com/jbenet/go-ipfs/crypto [no test files]
? github.com/jbenet/go-ipfs/daemon [no test files]
? github.com/jbenet/go-ipfs/fuse/readonly [no test files]
ok github.com/jbenet/go-ipfs/identify 0.256s coverage: 70.9% of statements
ok github.com/jbenet/go-ipfs/importer 3.939s coverage: 75.0% of statements
ok github.com/jbenet/go-ipfs/merkledag 0.032s coverage: 59.3% of statements
? github.com/jbenet/go-ipfs/msgproto [no test files]
? github.com/jbenet/go-ipfs/path [no test files]
ok github.com/jbenet/go-ipfs/peer 0.014s coverage: 36.8% of statements
? github.com/jbenet/go-ipfs/routing [no test files]
ok github.com/jbenet/go-ipfs/routing/dht 3.548s coverage: 60.3% of statements
ok github.com/jbenet/go-ipfs/routing/kbucket 0.265s coverage: 73.3% of statements
ok github.com/jbenet/go-ipfs/swarm 3.150s coverage: 47.6% of statements
ok github.com/jbenet/go-ipfs/util 0.009s coverage: 0.0% of statements
@btc
Copy link

btc commented Sep 14, 2014

what cmd did you use to generate the coverage report?

@jbenet
Copy link

jbenet commented Sep 14, 2014

i think this is just go test ./...

@btc
Copy link

btc commented Sep 14, 2014

my go test ./...

https://gist.github.com/anonymous/41d14406ecb24702dabc

ok      github.com/jbenet/go-ipfs/bitswap   0.044s
?       github.com/jbenet/go-ipfs/blocks    [no test files]
ok      github.com/jbenet/go-ipfs/blockservice  0.012s
?       github.com/jbenet/go-ipfs/cmd/ipfs  [no test files]
ok      github.com/jbenet/go-ipfs/config    0.008s
ok      github.com/jbenet/go-ipfs/core  2.261s
?       github.com/jbenet/go-ipfs/core/commands [no test files]
ok      github.com/jbenet/go-ipfs/crypto    0.049s
?       github.com/jbenet/go-ipfs/daemon    [no test files]
?       github.com/jbenet/go-ipfs/fuse/readonly [no test files]
ok      github.com/jbenet/go-ipfs/identify  0.122s
ok      github.com/jbenet/go-ipfs/importer  2.098s
ok      github.com/jbenet/go-ipfs/merkledag 0.018s
?       github.com/jbenet/go-ipfs/msgproto  [no test files]
?       github.com/jbenet/go-ipfs/path  [no test files]
ok      github.com/jbenet/go-ipfs/peer  0.015s
?       github.com/jbenet/go-ipfs/routing   [no test files]
ok      github.com/jbenet/go-ipfs/routing/dht   1.552s
ok      github.com/jbenet/go-ipfs/routing/kbucket   0.074s
ok      github.com/jbenet/go-ipfs/swarm 2.047s
ok      github.com/jbenet/go-ipfs/util  0.007s

@whyrusleeping
Copy link
Author

go test -cover ./...

@btc
Copy link

btc commented Jan 17, 2015

Here's an update:

?       github.com/jbenet/go-ipfs   [no test files]
ok      github.com/jbenet/go-ipfs/blocks    0.008s  coverage: 12.5% of statements
ok      github.com/jbenet/go-ipfs/blocks/blockstore 0.013s  coverage: 80.8% of statements
?       github.com/jbenet/go-ipfs/blocks/blocksutil [no test files]
ok      github.com/jbenet/go-ipfs/blocks/bloom  0.006s  coverage: 61.3% of statements
?       github.com/jbenet/go-ipfs/blocks/set    [no test files]
ok      github.com/jbenet/go-ipfs/blockservice  0.043s  coverage: 66.1% of statements
ok      github.com/jbenet/go-ipfs/cmd/ipfs  0.217s  coverage: 2.3% of statements
?       github.com/jbenet/go-ipfs/cmd/seccat    [no test files]
ok      github.com/jbenet/go-ipfs/commands  0.014s  coverage: 50.8% of statements
ok      github.com/jbenet/go-ipfs/commands/cli  0.021s  coverage: 31.4% of statements
ok      github.com/jbenet/go-ipfs/commands/files    0.010s  coverage: 46.8% of statements
ok      github.com/jbenet/go-ipfs/commands/http 0.013s  coverage: 12.3% of statements
ok      github.com/jbenet/go-ipfs/core  0.011s  coverage: 19.3% of statements
ok      github.com/jbenet/go-ipfs/core/commands 0.128s  coverage: 0.8% of statements
?       github.com/jbenet/go-ipfs/core/commands/internal    [no test files]
?       github.com/jbenet/go-ipfs/core/coreunix [no test files]
?       github.com/jbenet/go-ipfs/diagnostics   [no test files]
?       github.com/jbenet/go-ipfs/diagnostics/internal/pb   [no test files]
?       github.com/jbenet/go-ipfs/exchange  [no test files]
ok      github.com/jbenet/go-ipfs/exchange/bitswap  0.882s  coverage: 73.6% of statements
ok      github.com/jbenet/go-ipfs/exchange/bitswap/decision 0.026s  coverage: 57.1% of statements
ok      github.com/jbenet/go-ipfs/exchange/bitswap/message  0.011s  coverage: 91.1% of statements
?       github.com/jbenet/go-ipfs/exchange/bitswap/message/internal/pb  [no test files]
?       github.com/jbenet/go-ipfs/exchange/bitswap/network  [no test files]
ok      github.com/jbenet/go-ipfs/exchange/bitswap/notifications    0.015s  coverage: 92.9% of statements
ok      github.com/jbenet/go-ipfs/exchange/bitswap/testnet  0.176s  coverage: 45.9% of statements
?       github.com/jbenet/go-ipfs/exchange/bitswap/wantlist [no test files]
ok      github.com/jbenet/go-ipfs/exchange/offline  0.011s  coverage: 66.7% of statements
ok      github.com/jbenet/go-ipfs/exchange/reprovide    0.092s  coverage: 47.8% of statements
ok      github.com/jbenet/go-ipfs/fuse/ipns 0.055s  coverage: 0.0% of statements
?       github.com/jbenet/go-ipfs/fuse/mount    [no test files]
?       github.com/jbenet/go-ipfs/fuse/readonly [no test files]
ok      github.com/jbenet/go-ipfs/importer  0.604s  coverage: 68.1% of statements
ok      github.com/jbenet/go-ipfs/importer/chunk    2.733s  coverage: 18.5% of statements
ok      github.com/jbenet/go-ipfs/merkledag 0.098s  coverage: 61.1% of statements
ok      github.com/jbenet/go-ipfs/merkledag/internal/pb 0.017s  coverage: 73.4% of statements
ok      github.com/jbenet/go-ipfs/merkledag/traverse    0.017s  coverage: 78.4% of statements
ok      github.com/jbenet/go-ipfs/namesys   0.100s  coverage: 47.5% of statements
?       github.com/jbenet/go-ipfs/namesys/internal/pb   [no test files]
ok      github.com/jbenet/go-ipfs/p2p/crypto    0.161s  coverage: 42.8% of statements
?       github.com/jbenet/go-ipfs/p2p/crypto/internal/pb    [no test files]
ok      github.com/jbenet/go-ipfs/p2p/crypto/secio  0.010s  coverage: 0.0% of statements
?       github.com/jbenet/go-ipfs/p2p/crypto/secio/internal/pb  [no test files]
?       github.com/jbenet/go-ipfs/p2p/host  [no test files]
ok      github.com/jbenet/go-ipfs/p2p/host/basic    0.071s  coverage: 82.1% of statements
?       github.com/jbenet/go-ipfs/p2p/net   [no test files]
ok      github.com/jbenet/go-ipfs/p2p/net/conn  1.664s  coverage: 54.3% of statements
ok      github.com/jbenet/go-ipfs/p2p/net/mock  0.821s  coverage: 63.8% of statements
ok      github.com/jbenet/go-ipfs/p2p/net/swarm 12.660s coverage: 72.0% of statements
ok      github.com/jbenet/go-ipfs/p2p/net/swarm/addr    0.009s  coverage: 83.3% of statements
ok      github.com/jbenet/go-ipfs/p2p/peer  0.133s  coverage: 23.7% of statements
ok      github.com/jbenet/go-ipfs/p2p/peer/queue    1.421s  coverage: 87.7% of statements
ok      github.com/jbenet/go-ipfs/p2p/protocol  0.009s  coverage: 29.1% of statements
ok      github.com/jbenet/go-ipfs/p2p/protocol/identify 0.818s  coverage: 85.9% of statements
?       github.com/jbenet/go-ipfs/p2p/protocol/identify/pb  [no test files]
ok      github.com/jbenet/go-ipfs/p2p/protocol/relay    0.738s  coverage: 78.4% of statements
ok      github.com/jbenet/go-ipfs/p2p/test/backpressure 3.888s  coverage: 0.0% of statements
ok      github.com/jbenet/go-ipfs/p2p/test/reconnects   6.687s  coverage: 0.0% of statements
?       github.com/jbenet/go-ipfs/p2p/test/util [no test files]
?       github.com/jbenet/go-ipfs/path  [no test files]
ok      github.com/jbenet/go-ipfs/pin   0.014s  coverage: 68.4% of statements
?       github.com/jbenet/go-ipfs/repo  [no test files]
?       github.com/jbenet/go-ipfs/repo/common   [no test files]
ok      github.com/jbenet/go-ipfs/repo/config   0.008s  coverage: 9.5% of statements
ok      github.com/jbenet/go-ipfs/repo/fsrepo   0.052s  coverage: 61.9% of statements
?       github.com/jbenet/go-ipfs/repo/fsrepo/assert    [no test files]
ok      github.com/jbenet/go-ipfs/repo/fsrepo/component 0.013s  coverage: 20.4% of statements
?       github.com/jbenet/go-ipfs/repo/fsrepo/counter   [no test files]
?       github.com/jbenet/go-ipfs/repo/fsrepo/dir   [no test files]
?       github.com/jbenet/go-ipfs/repo/fsrepo/lock  [no test files]
ok      github.com/jbenet/go-ipfs/repo/fsrepo/serialize 0.010s  coverage: 73.3% of statements
?       github.com/jbenet/go-ipfs/routing   [no test files]
ok      github.com/jbenet/go-ipfs/routing/dht   10.243s coverage: 64.7% of statements
?       github.com/jbenet/go-ipfs/routing/dht/pb    [no test files]
ok      github.com/jbenet/go-ipfs/routing/kbucket   0.097s  coverage: 68.1% of statements
ok      github.com/jbenet/go-ipfs/routing/keyspace  0.009s  coverage: 89.2% of statements
ok      github.com/jbenet/go-ipfs/routing/mock  4.858s  coverage: 64.3% of statements
ok      github.com/jbenet/go-ipfs/server/http   0.011s  coverage: 56.8% of statements
ok      github.com/jbenet/go-ipfs/test/epictest 0.074s  coverage: 92.9% of statements
?       github.com/jbenet/go-ipfs/test/sharness/lib [no test files]
?       github.com/jbenet/go-ipfs/tour  [no test files]
ok      github.com/jbenet/go-ipfs/unixfs    0.007s  coverage: 25.9% of statements
ok      github.com/jbenet/go-ipfs/unixfs/io 0.016s  coverage: 0.0% of statements
?       github.com/jbenet/go-ipfs/unixfs/pb [no test files]
ok      github.com/jbenet/go-ipfs/updates   0.012s  coverage: 24.2% of statements
ok      github.com/jbenet/go-ipfs/util  0.286s  coverage: 42.4% of statements
ok      github.com/jbenet/go-ipfs/util/ctx  0.025s  coverage: 93.8% of statements
?       github.com/jbenet/go-ipfs/util/ctxcloser    [no test files]
?       github.com/jbenet/go-ipfs/util/datastore2   [no test files]
?       github.com/jbenet/go-ipfs/util/debugerror   [no test files]
?       github.com/jbenet/go-ipfs/util/delay    [no test files]
ok      github.com/jbenet/go-ipfs/util/eventlog 0.008s  coverage: 52.3% of statements
?       github.com/jbenet/go-ipfs/util/eventlog/loggables   [no test files]
?       github.com/jbenet/go-ipfs/util/math2    [no test files]
?       github.com/jbenet/go-ipfs/util/multierr [no test files]
?       github.com/jbenet/go-ipfs/util/peerset  [no test files]
?       github.com/jbenet/go-ipfs/util/pipes    [no test files]
?       github.com/jbenet/go-ipfs/util/prefixlog    [no test files]
?       github.com/jbenet/go-ipfs/util/testutil [no test files]
?       github.com/jbenet/go-ipfs/util/testutil/ci  [no test files]
ok      github.com/jbenet/go-ipfs/util/testutil/ci/jenkins  0.006s  coverage: 50.0% of statements
ok      github.com/jbenet/go-ipfs/util/testutil/ci/travis   0.004s  coverage: 50.0% of statements
?       github.com/jbenet/go-ipfs/util/todocounter  [no test files]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment