MCPcopy Index your code
hub / github.com/tensorflow/datasets / test_empty_split

Method test_empty_split

tensorflow_datasets/core/writer_test.py:396–402  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

394 self.assertEqual(total_size, 2)
395
396 def test_empty_split(self):
397 to_write = []
398 with self.assertRaisesWithPredicateMatch(
399 AssertionError, self.EMPTY_SPLIT_ERROR
400 ):
401 shard_config = shard_utils.ShardConfig(num_shards=1)
402 self._write(to_write=to_write, shard_config=shard_config)
403
404 def test_too_small_split(self):
405 to_write = [(1, b'a')]

Callers

nothing calls this directly

Calls 2

_writeMethod · 0.95

Tested by

no test coverage detected