mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 18:00:11 +01:00
40df138193
This commit contains the entire btcnet repository along with several changes needed to move all of the files into the chaincfg directory in order to prepare it for merging. This does NOT update btcd or any of the other packages to use the new location as that will be done separately. - All import paths in the old btcnet test files have been changed to the new location - All references to btcnet as the package name have been changed to chaincfg - The coveralls badge has been removed since it unfortunately doesn't support coverage of sub-packages This is ongoing work toward #214.
15 lines
230 B
Go
15 lines
230 B
Go
package chaincfg
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestInvalidShaStr(t *testing.T) {
|
|
defer func() {
|
|
if r := recover(); r == nil {
|
|
t.Errorf("Expected panic for invalid sha string, got nil")
|
|
}
|
|
}()
|
|
newShaHashFromStr("banana")
|
|
}
|