class FakeInspectTree
Defined at line 97 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
Fake implementation of a filesystem inspect tree for testing purposes. Encapsulates structured
data and an `fs_inspect::InspectTree` class similar to real filesystems, but with additional
helpers to support tests.
Public Methods
void FakeInspectTree (inspect::LazyNodeCallbackFn detail_node)
Defined at line 99 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
void SetInfoData (const InfoData & info_data)
Setters to modify the data the tree exposes.
Defined at line 107 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
void SetUsageData (const UsageData & usage_data)
Defined at line 108 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
void SetFvmData (const FvmData & fvm_data)
Defined at line 109 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
const inspect::Hierarchy * RootNode ()
Pointers to nodes within the hierarchy obtained from the last call to `UpdateSnapshot`.
Invalidated every time UpdateSnapshot() is called.
Defined at line 113 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
const inspect::Hierarchy * InfoNode ()
Defined at line 114 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
const inspect::Hierarchy * UsageNode ()
Defined at line 115 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
const inspect::Hierarchy * FvmNode ()
Defined at line 116 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
const inspect::Hierarchy * DetailNode ()
Defined at line 117 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc
void UpdateSnapshot ()
Updates the exposed node hierarchy by taking a snapshot of the tree and storing it internally.
Invalidates any node/hierarchy pointers previously obtained from this object.
Defined at line 121 of file ../../src/storage/lib/vfs/cpp/inspect/inspect_tree_tests.cc