|
Selfie
|
Public Member Functions | |
| __init__ (self) | |
| serialize (self, list[str] valueWriter) | |
| None | set_at_test_time (self, str key, Snapshot snapshot) |
| None | remove_all_indices (self, list[int] indices) |
| "SnapshotFile" | parse (cls, SnapshotValueReader value_reader) |
| "SnapshotFile" | create_empty_with_unix_newlines (cls, bool unix_newlines) |
Static Public Member Functions | |
| writeEntry (list[str] valueWriter, str key, Optional[str] facet, SnapshotValue value) | |
Public Attributes | |
| bool | unix_newlines = True |
| Optional[tuple[str, str]] | metadata = None |
| ArrayMap[str, Snapshot] | snapshots = ArrayMap.empty() |
| bool | was_set_at_test_time = False |
Static Public Attributes | |
| str | HEADER_PREFIX = "š· " |
| str | END_OF_FILE = "[end of file]" |
Protected Attributes | |
| Lock | _lock = Lock() |
Definition at line 11 of file SnapshotFile.py.
| selfie_lib.SnapshotFile.SnapshotFile.__init__ | ( | self | ) |
Definition at line 15 of file SnapshotFile.py.
| "SnapshotFile" selfie_lib.SnapshotFile.SnapshotFile.create_empty_with_unix_newlines | ( | cls, | |
| bool | unix_newlines ) |
Definition at line 105 of file SnapshotFile.py.
| "SnapshotFile" selfie_lib.SnapshotFile.SnapshotFile.parse | ( | cls, | |
| SnapshotValueReader | value_reader ) |
Definition at line 81 of file SnapshotFile.py.
| None selfie_lib.SnapshotFile.SnapshotFile.remove_all_indices | ( | self, | |
| list[int] | indices ) |
Definition at line 73 of file SnapshotFile.py.
| selfie_lib.SnapshotFile.SnapshotFile.serialize | ( | self, | |
| list[str] | valueWriter ) |
Definition at line 22 of file SnapshotFile.py.
| None selfie_lib.SnapshotFile.SnapshotFile.set_at_test_time | ( | self, | |
| str | key, | ||
| Snapshot | snapshot ) |
Definition at line 68 of file SnapshotFile.py.
|
static |
Definition at line 39 of file SnapshotFile.py.
|
protected |
Definition at line 19 of file SnapshotFile.py.
|
static |
Definition at line 13 of file SnapshotFile.py.
|
static |
Definition at line 12 of file SnapshotFile.py.
| Optional[tuple[str, str]] selfie_lib.SnapshotFile.SnapshotFile.metadata = None |
Definition at line 17 of file SnapshotFile.py.
| ArrayMap[str, Snapshot] selfie_lib.SnapshotFile.SnapshotFile.snapshots = ArrayMap.empty() |
Definition at line 18 of file SnapshotFile.py.
| bool selfie_lib.SnapshotFile.SnapshotFile.unix_newlines = True |
Definition at line 16 of file SnapshotFile.py.
| bool selfie_lib.SnapshotFile.SnapshotFile.was_set_at_test_time = False |
Definition at line 20 of file SnapshotFile.py.