[Add]: unit tests for special parameter position for ContractMethod#3697
[Add]: unit tests for special parameter position for ContractMethod#3697shargon merged 2 commits intoneo-project:masterfrom nan01ab:feat.add-some-ut-tests
Add]: unit tests for special parameter position for ContractMethod#3697Conversation
Test: add tests for implicit requirement of 'ApplicationEngine', 'DataCache' and 'IReadOnlyStoreView' parameter position in ContractMethod
Add]: unit test for special parameter position for ContractMethodAdd]: unit tests for special parameter position for ContractMethod
shargon
left a comment
There was a problem hiding this comment.
A good test should be if you check that all the native contracts that use these types are in the first place
All native contracts are checked. |
|
How can the coverage be less than before 😅 |
Only unit test code added. It should be statistical error. |
Yes your right. This happens all the time. Because |
|
We have non deterministic unit tests, and sometimes is bigger and sometimes is lower |
* master: (43 commits) Fix `GetAndChange` warnings (neo-project#3702) `Murmur3` should not be cryptographic hash algorithm (neo-project#3668) Test: add tests for native contract id (neo-project#3697) Update nugets (neo-project#3692) [Core P2P] fix the bug (neo-project#3695) Add hardfork HF_Echidna (neo-project#3454) Fix: add lock for RocksDbStore.Snapshot to keep same behavior as MemoryStore and LevelDbStore (neo-project#3689) Nullable rocks db (neo-project#3686) Nullable leveldb (neo-project#3685) Enforcement Compiler Warnings (neo-project#3687) [`Update`] Dotnet & Compiler Version (neo-project#3684) [`Add`]: LevelDB Benchmarks (neo-project#3667) [`Fix`]: Behavior when `keyPrefix` is null in different `IStore.Seek` impls. (neo-project#3682) Improve calculatenetworkfee (neo-project#3674) more 2025 (neo-project#3678) Nullable in Storage classes (neo-project#3670) readonly (neo-project#3676) [Fix] Set max entries for `VerifyProof` in `statePlugin` (neo-project#3675) Neo.json.benchmarks (neo-project#3673) Happy new year 2025 (neo-project#3677) ... # Conflicts: # src/Neo/Neo.csproj # src/Neo/ProtocolSettings.cs # src/Neo/SmartContract/ApplicationEngine.cs # src/Neo/SmartContract/Native/NeoToken.cs # src/Neo/SmartContract/Native/RoleManagement.cs # tests/Neo.UnitTests/SmartContract/Native/UT_NativeContract.cs
The
ContractMethodhas an implicit requirement for the 'ApplicationEngine' or 'DataCache' parameter: It must be the first parameter.Add tests for this implicit requirement.
Description
Fixes # (issue)
Type of change
Checklist: