mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-04 18:35:03 +00:00
Add initial state/TestDump test
This commit is contained in:
parent
bd9bd4abed
commit
fa59db7595
1 changed files with 9 additions and 0 deletions
|
|
@ -16,6 +16,15 @@ var _ = checker.Suite(&StateSuite{})
|
|||
|
||||
// var ZeroHash256 = make([]byte, 32)
|
||||
|
||||
func (s *StateSuite) TestDump(c *checker.C) {
|
||||
key := []byte{0x01}
|
||||
value := "foo"
|
||||
node := []interface{}{key, value}
|
||||
s.state.Trie.Put(node)
|
||||
dump := s.state.Dump()
|
||||
c.Assert(dump, checker.NotNil)
|
||||
}
|
||||
|
||||
func (s *StateSuite) SetUpTest(c *checker.C) {
|
||||
db, _ := ethdb.NewMemDatabase()
|
||||
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue