mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-26 15:24:44 +00:00
remove use of any
This commit is contained in:
72 files changed
+728
-792
No files matched your search
@@ -21,10 +21,12 @@ func TestConfigParsing(t *testing.T) {
|
||||
err := json.Unmarshal([]byte(rawJson), config)
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
account := new(Account)
|
||||
_, err = config.User.GetTypedAccount(account)
|
||||
rawAccount, err = config.User.GetTypedAccount()
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
account, ok := rawAccount.(*Account)
|
||||
assert.Bool(ok).IsTrue()
|
||||
|
||||
cipher, err := account.GetCipher()
|
||||
assert.Error(err).IsNil()
|
||||
assert.Int(cipher.KeySize()).Equals(16)
|
||||
|
||||
Reference in new issue
Block a user