MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST

Function TEST

codelab/exercise10_test.cc:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using ::testing::HasSubstr;
27
28TEST(Exercise10, IpInRange) {
29 EXPECT_THAT(CompileAndEvaluateExercise10(
30 R"cel(
31 net.parseAddressMatcher("8.8.4.0-8.8.4.255")
32 .containsAddress(
33 net.parseAddress(ip)
34 )
35 )cel",
36 "8.8.4.4"),
37 IsOkAndHolds(true));
38}
39
40TEST(Exercise10, IpNotInRange) {
41 EXPECT_THAT(CompileAndEvaluateExercise10(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected