MCPcopy Create free account
hub / github.com/apache/impala / TEST_F

Function TEST_F

be/src/util/sys-info-test.cc:83–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81};
82
83TEST_F(DiskInfoTest, Basic) {
84 cout << DiskInfo::DebugString();
85 cout << "Device name for disk 0: " << DiskInfo::device_name(0) << endl;
86
87 int disk_id_home_dir = DiskInfo::disk_id("/home");
88 if (disk_id_home_dir != -1) {
89 cout << "Device name for '/home': "
90 << DiskInfo::device_name(disk_id_home_dir) << endl;
91 } else {
92 // Often happens in Docker containers.
93 cout << "No device name for /home";
94 }
95}
96
97TEST_F(DiskInfoTest, NVMEDetection) {
98 // Positive case 1: NVME device with a partition specified

Callers

nothing calls this directly

Calls 1

DebugStringFunction · 0.50

Tested by

no test coverage detected