summaryrefslogtreecommitdiff
path: root/tests/codec/__main__.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-09-14 18:46:08 +0200
committerIlya Etingof <etingof@gmail.com>2019-09-28 23:05:25 +0200
commit4f644c59bf3ec34a3a8b9cd045dfd7cd1735259f (patch)
tree873f47b66d57f88f57d8b2c24f71df366114e560 /tests/codec/__main__.py
parent4d7d55330522f43472e8637c5f9a01778dea0f3a (diff)
downloadpyasn1-git-4f644c59bf3ec34a3a8b9cd045dfd7cd1735259f.tar.gz
Refactor BER decoder into a suspendable coroutine
The goal of this change is to make the decoder stopping on input data starvation and resuming from where it stopped whenever the caller decides to try again (hopefully making sure that some more input becomes available). This change makes it possible for the decoder to operate on streams of data (meaning that the entire DER blob might not be immediately available on input). On top of that, the decoder yields partially reconstructed ASN.1 object on input starvation making it possible for the caller to inspect what has been decoded so far and possibly consume partial ASN.1 data. All these new feature are natively available through `StreamingDecoder` class. Previously published API is implemented as a thin wrapper on top of that ensuring backward compatibility.
Diffstat (limited to 'tests/codec/__main__.py')
-rw-r--r--tests/codec/__main__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/codec/__main__.py b/tests/codec/__main__.py
index 7a4cf20..dbd744a 100644
--- a/tests/codec/__main__.py
+++ b/tests/codec/__main__.py
@@ -11,7 +11,8 @@ except ImportError:
import unittest
suite = unittest.TestLoader().loadTestsFromNames(
- ['tests.codec.ber.__main__.suite',
+ ['tests.codec.streaming.__main__.suite',
+ 'tests.codec.ber.__main__.suite',
'tests.codec.cer.__main__.suite',
'tests.codec.der.__main__.suite',
'tests.codec.native.__main__.suite']