Lines Matching defs:decorators
46 // Assert that the given decorators object has the default decorators (uptime, level, tags)
47 // If exclusive = true, also assert that no other decorators are selected
48 static void assert_default_decorators(LogDecorators* decorators, bool exclusive = true) {
54 EXPECT_TRUE(decorators->is_decorator(decorator));
56 EXPECT_FALSE(decorators->is_decorator(decorator));
62 LogDecorators decorators;
63 assert_default_decorators(&decorators);
110 LogDecorators decorators;
111 decorators.parse(""); // Empty string means we should use the default decorators
112 assert_default_decorators(&decorators);
115 // Test that "none" gives no decorators at all
117 LogDecorators decorators;
118 decorators.parse("none");
120 EXPECT_FALSE(decorators.is_decorator(decorator_array[i]));
126 LogDecorators decorators;
127 EXPECT_FALSE(decorators.parse("invalid"));
128 EXPECT_FALSE(decorators.parse(",invalid"));
129 EXPECT_FALSE(decorators.parse(",invalid,"));
130 assert_default_decorators(&decorators);
133 // Assert that the given decorator has all decorators between first and last
145 LogDecorators decorators;
161 EXPECT_TRUE(decorators.parse(decstr)) << "Valid decorator selection did not parse: " << decstr;
162 assert_decorations_between(&decorators, i, j);
180 // Select the default decorators for dec2
185 // Combine and verify that the combination includes first, third and default decorators
193 // Start with default decorators and then clear it