MCPcopy Create free account
hub / github.com/PAIR-code/lit / test_init_without_examples

Method test_init_without_examples

lit_nlp/api/dataset_test.py:457–462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

455 self.assertEqual(indexed_example['data'][key], original_data[key])
456
457 def test_init_without_examples(self):
458 dataset = lit_dataset.IndexedDataset(spec=self._DATASET_SPEC)
459 self.assertEmpty(dataset.examples)
460 self.assertEmpty(dataset.indexed_examples)
461 self.assertEqual(dataset.spec(), self._DATASET_SPEC)
462 self.assertIsNone(dataset.init_spec())
463
464
465class DatasetLoadingTest(absltest.TestCase):

Callers

nothing calls this directly

Calls 2

specMethod · 0.45
init_specMethod · 0.45

Tested by

no test coverage detected