Commit e7cf3f55 authored by David Vorick's avatar David Vorick

make cover works for renter/hostdb

parent a03e8e95
......@@ -79,6 +79,7 @@ bench: clean fmt REBUILD
go test -tags='testing' -timeout=300s -run=XXX -bench=. $(pkgs)
cover: clean REBUILD
@mkdir -p cover/modules
@mkdir -p cover/modules/renter
@for package in $(pkgs); do \
go test -tags='testing debug' -timeout=360s -covermode=atomic -coverprofile=cover/$$package.out ./$$package \
&& go tool cover -html=cover/$$package.out -o=cover/$$package.html \
......@@ -86,6 +87,7 @@ cover: clean REBUILD
done
cover-integration: clean REBUILD
@mkdir -p cover/modules
@mkdir -p cover/modules/renter
@for package in $(pkgs); do \
go test -run=TestIntegration -tags='testing debug' -timeout=300s -covermode=atomic -coverprofile=cover/$$package.out ./$$package \
&& go tool cover -html=cover/$$package.out -o=cover/$$package.html \
......@@ -93,6 +95,7 @@ cover-integration: clean REBUILD
done
cover-unit: clean REBUILD
@mkdir -p cover/modules
@mkdir -p cover/modules/renter
@for package in $(pkgs); do \
go test -run=TestUnit -tags='testing debug' -timeout=300s -covermode=atomic -coverprofile=cover/$$package.out ./$$package \
&& go tool cover -html=cover/$$package.out -o=cover/$$package.html \
......
......@@ -24,6 +24,7 @@ Notes:
these values, or you risk losing precision.
Example GET curl call: `curl -A "Sia-Agent" /wallet/transactions?startheight=1&endheight=250`
Example POST curl call: `curl -A "Sia-Agent" --data "amount=123&destination=abcd" /wallet/siacoins
Consensus
......
......@@ -11,8 +11,8 @@ const (
)
type (
// ExplorerStatistics returns a bunch of instantaneous statistics about the
// explorer at the current height.
// ExplorerStatistics returns a bunch of statistics about the explorer at
// the current height.
ExplorerStatistics struct {
// General consensus information.
Height types.BlockHeight
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment