Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是超级账本结构的新手,在编写了链代码之后,我不喜欢每次都部署和测试。有什么方法可以在不部署的情况下测试链代码逻辑..
要测试链码,只需在包含链码的目录中执行
go test
有关如何为链代码编写测试的示例,请参见chaincode_example02_test.go 。