MCPcopy
hub / github.com/treeverse/dvc / read_text

Method read_text

dvc/testing/cloud.py:43–47  ·  view source on GitHub ↗
(self, encoding=None, errors=None)

Source from the content-addressed store, hash-verified

41 pass
42
43 def read_text(self, encoding=None, errors=None):
44 if not encoding:
45 encoding = locale.getpreferredencoding(False)
46 assert errors is None
47 return self.read_bytes().decode(encoding)
48
49 @abstractmethod
50 def read_bytes(self):

Callers 15

test_importMethod · 0.45
test_import_dirMethod · 0.45
test_import_fileMethod · 0.45
test_import_dirMethod · 0.45
test_get_fileMethod · 0.45
test_get_dirMethod · 0.45
test_get_url_to_dirMethod · 0.45
test_add_to_remoteMethod · 0.45
test_fileMethod · 0.45

Calls 1

read_bytesMethod · 0.95

Tested by 15

test_importMethod · 0.36
test_import_dirMethod · 0.36
test_import_fileMethod · 0.36
test_import_dirMethod · 0.36
test_get_fileMethod · 0.36
test_get_dirMethod · 0.36
test_get_url_to_dirMethod · 0.36
test_add_to_remoteMethod · 0.36
test_fileMethod · 0.36