1 #include "src/processing.hpp"
2 
3 #include <gtest/gtest.h>
4 
5 // Verify if name is empty, false is returned
6 TEST(NeedToIntrospect, PassEmptyName)
7 {
8     AllowDenyList allowList;
9     std::string processName;
10 
11     EXPECT_FALSE(needToIntrospect(processName, allowList));
12 }
13 
14 // Verify if name is on allowlist, true is returned
15 TEST(NeedToIntrospect, ValidAllowListName)
16 {
17     AllowDenyList allowList = {"xyz.openbmc_project"};
18     std::string processName = "xyz.openbmc_project.State.Host";
19 
20     EXPECT_TRUE(needToIntrospect(processName, allowList));
21 }
22