mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
Added tests for previously untested model functions: - ValidateProposal (91.7% coverage) - UpdateWeights with gradient validation - GetState (full coverage) - LoadState (90.0% coverage) - Utility functions (hashComplexity, addressEntropy, versionEntropy) - Edge cases for feature extractors Test count: 86 tests total Coverage improved: 31.3% → 35.0% Remaining low coverage: - engine.go: RemoveModule, GetModule (simple accessors) - modules.go: processProposal, processVote (require full integration) - specialized.go, integration.go, bridge.go, xchain.go (integration heavy)