MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / TEST_F

Function TEST_F

framework/test/gtest/LDAPQueryTest.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61TEST_F(LDAPQueryTest, TestLDAPFilterMatchBundle)
62{
63 LDAPFilter ldapMatchCase("(bundle.testproperty=YES)");
64 LDAPFilter ldapKeyMismatchCase("(bundle.TestProperty=YES)");
65 LDAPFilter ldapValueMismatchCase("(bundle.testproperty=Yes)");
66
67 // Exact string match of both key and value
68 ASSERT_TRUE(ldapMatchCase.Match(testBundle));
69
70 // Testing case-insensitive key (should still pass)
71 ASSERT_TRUE(ldapKeyMismatchCase.Match(testBundle));
72
73 // Testing case-insensitive value (should fail)
74 ASSERT_FALSE(ldapValueMismatchCase.Match(testBundle));
75}
76
77TEST_F(LDAPQueryTest, TestLDAPFilterMatchNoException)
78{

Callers

nothing calls this directly

Calls 6

MatchMethod · 0.80
MatchCaseMethod · 0.80
StartMethod · 0.45
GetBundleContextMethod · 0.45
GetServiceReferenceMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected