Selfie
Loading...
Searching...
No Matches
selfie_lib.SnapshotSystem.SnapshotSystem Class Reference
Inheritance diagram for selfie_lib.SnapshotSystem.SnapshotSystem:

Public Member Functions

FS fs (self)
"Mode" mode (self)
SnapshotFileLayout layout (self)
bool source_file_has_writable_comment (self, CallStack call)
None write_inline (self, LiteralValue literal_value, CallStack call)
None write_to_be_file (self, TypedPath path, ByteString data, CallStack call)
DiskStorage disk_thread_local (self)

Detailed Description

Definition at line 30 of file SnapshotSystem.py.

Member Function Documentation

◆ disk_thread_local()

DiskStorage selfie_lib.SnapshotSystem.SnapshotSystem.disk_thread_local ( self)
Returns the DiskStorage for the test associated with this thread, else error.

Definition at line 67 of file SnapshotSystem.py.

67 def disk_thread_local(self) -> DiskStorage:
68 """
69 Returns the DiskStorage for the test associated with this thread, else error.
70 """
71 ...
72
73

◆ fs()

FS selfie_lib.SnapshotSystem.SnapshotSystem.fs ( self)

Definition at line 33 of file SnapshotSystem.py.

33 def fs(self) -> FS: ...
34

◆ layout()

SnapshotFileLayout selfie_lib.SnapshotSystem.SnapshotSystem.layout ( self)

Definition at line 41 of file SnapshotSystem.py.

41 def layout(self) -> SnapshotFileLayout: ...
42

◆ mode()

"Mode" selfie_lib.SnapshotSystem.SnapshotSystem.mode ( self)

Definition at line 37 of file SnapshotSystem.py.

37 def mode(self) -> "Mode": ...
38

◆ source_file_has_writable_comment()

bool selfie_lib.SnapshotSystem.SnapshotSystem.source_file_has_writable_comment ( self,
CallStack call )
Returns true if the sourcecode for the given call has a writable annotation.

Definition at line 44 of file SnapshotSystem.py.

44 def source_file_has_writable_comment(self, call: CallStack) -> bool:
45 """
46 Returns true if the sourcecode for the given call has a writable annotation.
47 """
48 ...
49

◆ write_inline()

None selfie_lib.SnapshotSystem.SnapshotSystem.write_inline ( self,
LiteralValue literal_value,
CallStack call )
Indicates that the following value should be written into test sourcecode.

Definition at line 51 of file SnapshotSystem.py.

51 def write_inline(self, literal_value: LiteralValue, call: CallStack) -> None:
52 """
53 Indicates that the following value should be written into test sourcecode.
54 """
55 ...
56

◆ write_to_be_file()

None selfie_lib.SnapshotSystem.SnapshotSystem.write_to_be_file ( self,
TypedPath path,
ByteString data,
CallStack call )
Writes the given bytes to the given file, checking for duplicate writes.

Definition at line 58 of file SnapshotSystem.py.

60 ) -> None:
61 """
62 Writes the given bytes to the given file, checking for duplicate writes.
63 """
64 ...
65

The documentation for this class was generated from the following file: