Documentation ¶
Index ¶
- Variables
- func MockCreateNode(inQC storage.QuorumCertInterface, signs []*chainedBftPb.QuorumCertSign) *storage.ProposalNode
- func MockCreateQC(id []byte, view int64, parent []byte, parentView int64) storage.QuorumCertInterface
- func MockInitQcTree() *storage.QCPendingTree
- func PrepareTree(t *testing.T) *storage.QCPendingTree
- type TestHelper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogPath = filepath.Join(utils.GetCurFileDir(), "../main/test") NodePath = filepath.Join(utils.GetCurFileDir(), "../../../../../mock/p2pv2") )
Functions ¶
func MockCreateNode ¶
func MockCreateNode(inQC storage.QuorumCertInterface, signs []*chainedBftPb.QuorumCertSign) *storage.ProposalNode
func MockCreateQC ¶
func MockInitQcTree ¶
func MockInitQcTree() *storage.QCPendingTree
func PrepareTree ¶
func PrepareTree(t *testing.T) *storage.QCPendingTree
TestDFSQueryNode Tree如下 root | \ node1 node12 | node2
Types ¶
type TestHelper ¶
func NewTestHelper ¶
func NewTestHelper() (*TestHelper, error)
func (*TestHelper) Close ¶
func (th *TestHelper) Close()
Click to show internal directories.
Click to hide internal directories.