MCPcopy Create free account
hub / github.com/google-research/language / test_maybe_encode

Method test_maybe_encode

language/fruit/tf_utils_test.py:25–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.assertIsInstance(tf_utils.maybe_decode(x), str)
24
25 def test_maybe_encode(self):
26 x = "A test string"
27 self.assertIsInstance(tf_utils.maybe_encode(x), bytes)
28
29 def test_to_example(self):
30 dictionary = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected