mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
check unused and unmodified vars in all modules, not just main
This commit is contained in:
parent
bdaa421e8a
commit
c8d111924d
31 changed files with 133 additions and 119 deletions
|
@ -20,7 +20,7 @@ fn test_crypto_aes() {
|
|||
if ciphertext.len%aes.block_size != 0 {
|
||||
panic('ciphertext is not a multiple of the block size')
|
||||
}
|
||||
mut mode := aes.new_cbc(block, iv)
|
||||
mode := aes.new_cbc(block, iv)
|
||||
mode.encrypt_blocks(mut ciphertext, ciphertext)
|
||||
|
||||
assert ciphertext.hex() == 'c210459b514668ddc44674885e4979215265a6c44431a248421254ef357a8c2a308a8bddf5623af9df91737562041cf1'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue