MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / TEST_CASE

Function TEST_CASE

test/native/processInfoTest.cpp:11–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "testRunner.hpp"
10
11TEST_CASE(ProcessInfo_initialization) {
12 ProcessInfo info;
13 ASSERT_EQ(info.pid, 0);
14 ASSERT_EQ(info.ppid, 0);
15 ASSERT_EQ(info.cpu_percent, 0.0f);
16 ASSERT_EQ(info.uid, 0U);
17 ASSERT_EQ(info.state, 0);
18 ASSERT_EQ(info.start_time, 0UL);
19 ASSERT_EQ(info.cpu_user, 0UL);
20 ASSERT_EQ(info.cpu_system, 0UL);
21 ASSERT_EQ(info.threads, 0);
22 ASSERT_EQ(info.vm_size, 0UL);
23 ASSERT_EQ(info.vm_rss, 0UL);
24 ASSERT_EQ(info.rss_anon, 0UL);
25 ASSERT_EQ(info.rss_files, 0UL);
26 ASSERT_EQ(info.rss_shmem, 0UL);
27 ASSERT_EQ(info.minor_faults, 0UL);
28 ASSERT_EQ(info.major_faults, 0UL);
29 ASSERT_EQ(info.io_read, 0UL);
30 ASSERT_EQ(info.io_write, 0UL);
31}
32
33#ifdef __linux__
34

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected