MCPcopy
hub / github.com/apache/caldera / test_plaintext_encoding

Method test_plaintext_encoding

tests/objects/test_data_encoder.py:39–44  ·  view source on GitHub ↗
(self, plaintext_encoder)

Source from the content-addressed store, hash-verified

37 assert base64_encoder and isinstance(base64_encoder, Base64Encoder)
38
39 def test_plaintext_encoding(self, plaintext_encoder):
40 data = b'this will be encoded/decoded in plaintext'
41 encoded = plaintext_encoder.encode(data)
42 assert encoded == data
43 decoded = plaintext_encoder.decode(encoded)
44 assert decoded == data
45
46 def test_base64_encoding(self, base64_encoder):
47 data = b'this will be encoded/decoded in base64'

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected