Skip to content

Commit c1f71bd

Browse files
authored
chore: fix some function names in comment (gcash#562)
Signed-off-by: luozexuan <fetchcode@139.com>
1 parent d05afe4 commit c1f71bd

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

wire/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ func TestVarIntNonCanonical(t *testing.T) {
418418
}
419419
}
420420

421-
// TestVarIntWire tests the serialize size for variable length integers.
421+
// TestVarIntSerializeSize tests the serialize size for variable length integers.
422422
func TestVarIntSerializeSize(t *testing.T) {
423423
tests := []struct {
424424
val uint64 // Value to get the serialized size for

wire/invvect_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/gcash/bchd/chaincfg/chainhash"
1414
)
1515

16-
// TestInvVectStringer tests the stringized output for inventory vector types.
16+
// TestInvTypeStringer tests the stringized output for inventory vector types.
1717
func TestInvTypeStringer(t *testing.T) {
1818
tests := []struct {
1919
in InvType

wire/msgblocktxns_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func TestBlockTxnsCrossProtocol(t *testing.T) {
116116
}
117117
}
118118

119-
// TestGetBlockTxnsWire tests the GetBlockTxnsWire wire encode and decode for
119+
// TestBlockTxnsWire tests the GetBlockTxnsWire wire encode and decode for
120120
// various protocol versions.
121121
func TestBlockTxnsWire(t *testing.T) {
122122
msgBlockTxns := NewMsgBlockTxns(chainhash.Hash{}, []*MsgTx{blockOne.Transactions[0]})

wire/msgfilterclear_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/davecgh/go-spew/spew"
1313
)
1414

15-
// TestFilterCLearLatest tests the MsgFilterClear API against the latest
15+
// TestFilterClearLatest tests the MsgFilterClear API against the latest
1616
// protocol version.
1717
func TestFilterClearLatest(t *testing.T) {
1818
pver := ProtocolVersion

wire/msgfilterload_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"testing"
1212
)
1313

14-
// TestFilterCLearLatest tests the MsgFilterLoad API against the latest protocol
14+
// TestFilterLoadLatest tests the MsgFilterLoad API against the latest protocol
1515
// version.
1616
func TestFilterLoadLatest(t *testing.T) {
1717
pver := ProtocolVersion

0 commit comments

Comments
 (0)