Zapix / mtpylon

Library to build backend with MTProto's protocol
MIT License
10 stars 0 forks source link

zapix/33 dump as signed integers #135

Closed Zapix closed 3 years ago

Zapix commented 3 years ago

Decided to dump as signed int int and long values. Coz it's described in documentation: https://core.telegram.org/mtproto/serialize#base-types

Dump as unsigned int int128, int256 cot it hasn't been described in documentation and works good in auth key exchanging, encrypting/decrypting messages.

closes #33

codecov[bot] commented 3 years ago

Codecov Report

Merging #135 (5a6996d) into dev (8b8a1da) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #135   +/-   ##
=======================================
  Coverage   99.32%   99.32%           
=======================================
  Files         197      197           
  Lines        5628     5642   +14     
=======================================
+ Hits         5590     5604   +14     
  Misses         38       38           
Flag Coverage Δ
unittests 99.32% <100.00%> (+<0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tests/simple_manager.py 100.00% <ø> (ø)
tests/test_crypto/test_rsa_fingerprint.py 100.00% <ø> (ø)
tests/test_messages/test_unencrypted_message.py 100.00% <ø> (ø)
tests/test_serializers.py 100.00% <ø> (ø)
mtpylon/crypto/rsa_fingerprint.py 100.00% <100.00%> (ø)
mtpylon/serialization/int.py 100.00% <100.00%> (ø)
mtpylon/serialization/long.py 100.00% <100.00%> (ø)
mtpylon/serializers.py 100.00% <100.00%> (ø)
mtpylon/utils.py 96.39% <100.00%> (+0.03%) :arrow_up:
tests/test_messages/test_encrypted_message.py 100.00% <100.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8b8a1da...5a6996d. Read the comment docs.