• Home
  • Raw
  • Download

Lines Matching refs:ASSERT_INT_EQ

27 	ASSERT_INT_EQ(match_pattern("", ""), 1);  in tests()
28 ASSERT_INT_EQ(match_pattern("", "aaa"), 0); in tests()
29 ASSERT_INT_EQ(match_pattern("aaa", ""), 0); in tests()
30 ASSERT_INT_EQ(match_pattern("aaa", "aaaa"), 0); in tests()
31 ASSERT_INT_EQ(match_pattern("aaaa", "aaa"), 0); in tests()
35 ASSERT_INT_EQ(match_pattern("", "*"), 1); in tests()
36 ASSERT_INT_EQ(match_pattern("a", "?"), 1); in tests()
37 ASSERT_INT_EQ(match_pattern("aa", "a?"), 1); in tests()
38 ASSERT_INT_EQ(match_pattern("a", "*"), 1); in tests()
39 ASSERT_INT_EQ(match_pattern("aa", "a*"), 1); in tests()
40 ASSERT_INT_EQ(match_pattern("aa", "?*"), 1); in tests()
41 ASSERT_INT_EQ(match_pattern("aa", "**"), 1); in tests()
42 ASSERT_INT_EQ(match_pattern("aa", "?a"), 1); in tests()
43 ASSERT_INT_EQ(match_pattern("aa", "*a"), 1); in tests()
44 ASSERT_INT_EQ(match_pattern("ba", "a?"), 0); in tests()
45 ASSERT_INT_EQ(match_pattern("ba", "a*"), 0); in tests()
46 ASSERT_INT_EQ(match_pattern("ab", "?a"), 0); in tests()
47 ASSERT_INT_EQ(match_pattern("ab", "*a"), 0); in tests()
51 ASSERT_INT_EQ(match_pattern_list("", "", 0), 0); /* no patterns */ in tests()
52 ASSERT_INT_EQ(match_pattern_list("", "*", 0), 1); in tests()
53 ASSERT_INT_EQ(match_pattern_list("", "!*", 0), -1); in tests()
54 ASSERT_INT_EQ(match_pattern_list("", "!a,*", 0), 1); in tests()
55 ASSERT_INT_EQ(match_pattern_list("", "*,!a", 0), 1); in tests()
56 ASSERT_INT_EQ(match_pattern_list("", "a,!*", 0), -1); in tests()
57 ASSERT_INT_EQ(match_pattern_list("", "!*,a", 0), -1); in tests()
58 ASSERT_INT_EQ(match_pattern_list("a", "", 0), 0); in tests()
59 ASSERT_INT_EQ(match_pattern_list("a", "*", 0), 1); in tests()
60 ASSERT_INT_EQ(match_pattern_list("a", "!*", 0), -1); in tests()
61 ASSERT_INT_EQ(match_pattern_list("a", "!a", 0), -1); in tests()
63 ASSERT_INT_EQ(match_pattern_list("a", "!a,*", 0), -1); in tests()
64 ASSERT_INT_EQ(match_pattern_list("b", "!a,*", 0), 1); in tests()
65 ASSERT_INT_EQ(match_pattern_list("a", "*,!a", 0), -1); in tests()
66 ASSERT_INT_EQ(match_pattern_list("b", "*,!a", 0), 1); in tests()
67 ASSERT_INT_EQ(match_pattern_list("a", "a,!*", 0), -1); in tests()
68 ASSERT_INT_EQ(match_pattern_list("b", "a,!*", 0), -1); in tests()
69 ASSERT_INT_EQ(match_pattern_list("a", "a,!a", 0), -1); in tests()
71 ASSERT_INT_EQ(match_pattern_list("a", "!*,a", 0), -1); in tests()
72 ASSERT_INT_EQ(match_pattern_list("b", "!*,a", 0), -1); in tests()
76 ASSERT_INT_EQ(match_pattern_list("abc", "ABC", 0), 0); in tests()
77 ASSERT_INT_EQ(match_pattern_list("ABC", "abc", 0), 0); in tests()
78 ASSERT_INT_EQ(match_pattern_list("abc", "ABC", 1), 1); in tests()
79 ASSERT_INT_EQ(match_pattern_list("ABC", "abc", 1), 0); in tests()
83 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.0.1/44"), -2); in tests()
84 ASSERT_INT_EQ(addr_match_list(NULL, "127.0.0.1/44"), -2); in tests()
85 ASSERT_INT_EQ(addr_match_list("a", "*"), 0); in tests()
86 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "*"), 1); in tests()
87 ASSERT_INT_EQ(addr_match_list(NULL, "*"), 0); in tests()
88 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.0.1"), 1); in tests()
89 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.0.2"), 0); in tests()
90 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.1"), -1); in tests()
92 ASSERT_INT_EQ(addr_match_list("127.0.0.255", "127.0.0.0/24"), 1); in tests()
93 ASSERT_INT_EQ(addr_match_list("127.0.1.1", "127.0.0.0/24"), 0); in tests()
94 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.0.0/24"), 1); in tests()
95 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.1.0/24"), 0); in tests()
96 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.0/24"), -1); in tests()
98 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "10.0.0.1,!127.0.0.1"), -1); in tests()
99 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "!127.0.0.1,10.0.0.1"), -1); in tests()
100 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "10.0.0.1,127.0.0.2"), 0); in tests()
101 ASSERT_INT_EQ(addr_match_list("127.0.0.1", "127.0.0.2,10.0.0.1"), 0); in tests()