featurebase/ctl
Seebs cecaf99ee4 testhook: leak auditing infrastructure
The testhook/ package provides an easy way to set up multiple
hooks to run before/after tests are run.

The audit hooks track open and closes of storage backends,
files, indexes, and holders, for example. A tempdir wrapper
creates temporary directories which are automatically cleaned up
when the test ends. Any kind of resource creation that
should be closed at test conclusion can be tracked. We
will complain at the end of the TestMain if resources are
leaking.

Leaks under go1.13:

We use a wrapper function which is a no-op for go 1.13, but actually
calls testing.TB.Cleanup in go1.14, so we can still build with 1.13 even though
tests will leak files all over the place there. Because of this,
don't run the testhook tests when using 1.13, as they'll always fail.

- the test/pilosa.go http client now times out after 10 seconds
to help diagnose hung server situations.

- Makefile targets added to get better progress reports.
2020-08-24 11:26:39 -05:00
..
check.go v2.0.0 2019-10-08 14:56:17 -06:00
check_test.go generalize test strings and break out old UnmarshalBinary code 2019-08-05 17:39:47 -05:00
common.go v2.0.0 2019-10-08 14:56:17 -06:00
config.go v2.0.0 2019-10-08 14:56:17 -06:00
config_test.go v2.0.0 2019-10-08 14:56:17 -06:00
doc.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
export.go v2.0.0 2019-10-08 14:56:17 -06:00
export_test.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
generate_config.go v2.0.0 2019-10-08 14:56:17 -06:00
generate_config_test.go so much lint 2019-04-16 12:07:18 -05:00
import.go Revert "back out the pql.Decimal changes" 2020-04-01 17:46:46 -05:00
import_test.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
inspect.go shared/generic functionality for iterating holders 2020-06-29 15:18:47 -04:00
inspect_test.go improve inspect output, switch roaring over to using new unmarshal 2020-06-29 15:13:47 -04:00
server.go add a postgres endpoint to pilosa 2020-08-20 11:29:16 -04:00
server_test.go v2.0.0 2019-10-08 14:56:17 -06:00