Check cpuinfo_core objects in mock tests
diff --git a/test/nexus6.cc b/test/nexus6.cc
index 5e37d88..2b2dfc9 100644
--- a/test/nexus6.cc
+++ b/test/nexus6.cc
@@ -30,6 +30,22 @@
}
}
+TEST(CORES, count) {
+ ASSERT_EQ(4, cpuinfo_cores_count);
+}
+
+TEST(CORES, processor_start) {
+ for (uint32_t i = 0; i < cpuinfo_cores_count; i++) {
+ ASSERT_EQ(i, cpuinfo_cores[i].processor_start);
+ }
+}
+
+TEST(CORES, processor_count) {
+ for (uint32_t i = 0; i < cpuinfo_cores_count; i++) {
+ ASSERT_EQ(1, cpuinfo_cores[i].processor_count);
+ }
+}
+
TEST(PACKAGES, count) {
ASSERT_EQ(1, cpuinfo_packages_count);
}