Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 4b84bd52ddd99eed8ec113457104fa9e847a9bc1
https://github.com/btcsuite/btcd/commit/4b84bd52ddd99eed8ec113457104fa9e847a9bc1
Author: Dave Collins <[email protected]>
Date: 2015-02-06 (Fri, 06 Feb 2015)
Changed paths:
M btcec/bench_test.go
M btcec/btcec_test.go
Log Message:
-----------
Move the btcec benchmarks into the main package.
The benchmarks are still only compiled when running 'go test' so this has
no effect on regular usage. This is being done because benchmarks often
need access to internal state.
Normal tests are kept in a separate package since they also serve to
exercise the public API, and by intentionally making it more difficult to
reach into the internals, it helps ensure the public API is sanely usable.
Since the benchmarks can now access the internals directly, this commit
also removes the functions which exposed the internals to the test package
from internal_test.go which were only used by the benchmarks.
Also, it removes a duplicate benchmark.