github.com/linapex/ethereum-go-chinese@v0.0.0-20190316121929-f8b7a73c3fa1/swarm/storage/mock/mem/mem_test.go (about) 1 2 //<developer> 3 // <name>linapex 曹一峰</name> 4 // <email>linapex@163.com</email> 5 // <wx>superexc</wx> 6 // <qqgroup>128148617</qqgroup> 7 // <url>https://jsq.ink</url> 8 // <role>pku engineer</role> 9 // <date>2019-03-16 19:16:45</date> 10 //</624450120653475840> 11 12 13 package mem 14 15 import ( 16 "testing" 17 18 "github.com/ethereum/go-ethereum/swarm/storage/mock/test" 19 ) 20 21 //TestGlobalStore正在为GlobalStore运行测试 22 //使用test.mockstore函数。 23 func TestGlobalStore(t *testing.T) { 24 test.MockStore(t, NewGlobalStore(), 100) 25 } 26 27 //testmortexport正在运行用于导入和 28 //在两个GlobalStores之间导出数据 29 //使用test.importexport函数。 30 func TestImportExport(t *testing.T) { 31 test.ImportExport(t, NewGlobalStore(), NewGlobalStore(), 100) 32 } 33