tutus-chain/pkg/core/native/native_test
Tutus Development 48a8af58df Add Eligere native contract tests
Add basic tests for the Eligere (democratic voting) contract:
- TestEligere_GetConfig: Verify default config retrieval
- TestEligere_GetProposalCount: Verify initial count is 0
- TestEligere_GetProposal_NonExistent: Verify null for non-existent
- TestEligere_CreateProposal_NoVita: Verify Vita requirement
- TestEligere_HasVoted_NoVote: Verify hasVoted returns false
- TestEligere_Vote_NoVita: Verify Vita requirement for voting

Note: Full cross-contract tests for proposal creation/voting with actual
Vita holders would require a helper contract since Eligere uses
GetCallingScriptHash() for authorization (designed for cross-contract).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 06:44:00 +00:00
..
helpers/policyhelper Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
common_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
cryptolib_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
cryptolib_verification_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
designate_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
eligere_test.go Add Eligere native contract tests 2025-12-20 06:44:00 +00:00
gas_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
ledger_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
management_test.go Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00
neo_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
notary_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
oracle_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
policy_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
role_registry_test.go Add RoleRegistry native contract for hierarchical RBAC 2025-12-20 01:35:26 +00:00
std_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
treasury_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
vita_test.go Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00
vts_test.go Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00