zeekay
|
1716e1abdd
|
test: 65 regression tests covering all security findings
Plugin tests (plugins/*_test.go):
- Chain ID constants: all 18 IDs verified, regression for old OPNET ID
- Solana parseLockEventFromLogs: 9 tests including amount offset regression
(d[120:128] not d[112:120]), recipient extraction, discriminator, edge cases
- TON decodeVarUInteger16: 10 tests for 1/2/4/8 byte amounts, edge cases
- TON BOC parsing: findCellData with valid/short/nil/non-standard input
- EVM hexToBytes: 12 tests including 0x prefix, odd length, invalid chars
- Plugin constructors: name/chainID for all 4 plugin types
Config tests (config_test.go):
- DefaultConfig values: MaxBackingChangePct=15, ConfirmationDepth=6, CheckpointPath
- Validate: 10 tests for all required fields, threshold mode, single-key mode
Watcher tests (watcher_test.go): checkpoint save/load, dedup, atomic write
Relay tests (relay_test.go): nonceDirty flag, RLP encoding, funcSelector
|
2026-04-06 23:37:20 -07:00 |
|