Branch: refs/heads/master
  Home:   https://github.com/conformal/btcwire
  Commit: 3ae8056fdb0f6823a32613af2fc0336f06bca835
      
https://github.com/conformal/btcwire/commit/3ae8056fdb0f6823a32613af2fc0336f06bca835
  Author: Dave Collins <[email protected]>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M bench_test.go
    M internal_test.go

  Log Message:
  -----------
  Move the benchmarks into the main btcwire 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.


Reply via email to