nspcc-dev/neo-go

Cover example contracts with tests

开放

#3,648 创建于 2024年10月28日

 (1 条评论) (0 个反应) (0 位负责人)Go (108 个派生)auto 404
I2S4U4enhancementgood first issuehelp wantedtest

仓库指标

星标
 (132 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem? Please describe.

Some of our example contracts are not tested although they are complicated. In fact, only NNS contract has some unit-tests.

Describe the solution you'd like

At least complicated contracts like nft-nd and nft-d must be covered with neotest unit tests. Ideally, all of them must be covered with tests. First of all, these contracts are examples for other SC developers. Secondly, when we extend these contracts, we need to have a way to check that extension works properly, e.g. for situations like in https://github.com/nspcc-dev/neo-go/pull/3560.

Describe alternatives you've considered

No alternatives, tests are must-have.

贡献者指南