Lines Matching refs:keyA

133     MetricDimensionKey keyA = getMockMetricDimensionKey(1, "a");  in TEST()  local
145 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST()
146 std::shared_ptr<DimToValMap> bucket1 = MockBucket({{keyA, 1}}); in TEST()
148 std::shared_ptr<DimToValMap> bucket3 = MockBucket({{keyA, 2}}); in TEST()
150 std::shared_ptr<DimToValMap> bucket5 = MockBucket({{keyA, 2}}); in TEST()
151 std::shared_ptr<DimToValMap> bucket6 = MockBucket({{keyA, 2}}); in TEST()
158 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 0, bucket0, {}, {keyA, keyB, keyC})); in TEST()
161 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
166 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST()
172 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 1, bucket1, {}, {keyA, keyB, keyC})); in TEST()
175 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
180 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST()
184 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 1, bucket1, {}, {keyA, keyB, keyC})); in TEST()
187 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
193 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST()
198 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 2, bucket2, {keyB}, {keyA, keyC})); in TEST()
201 {{keyA, -1}, {keyB, eventTimestamp2}, {keyC, -1}}); in TEST()
207 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST()
211 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 2, bucket2, {keyB}, {keyA, keyC})); in TEST()
214 {{keyA, -1}, {keyB, eventTimestamp2}, {keyC, -1}}); in TEST()
220 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST()
224 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 3, bucket3, {keyA}, {keyB, keyC})); in TEST()
227 {{keyA, eventTimestamp3}, {keyB, eventTimestamp2}, {keyC, -1}}); in TEST()
233 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST()
237 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 4, bucket4, {keyB}, {keyA, keyC})); in TEST()
240 {{keyA, eventTimestamp3}, {keyB, eventTimestamp4}, {keyC, -1}}); in TEST()
246 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST()
250 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 5, bucket5, {keyA, keyB}, {keyC})); in TEST()
253 {{keyA, eventTimestamp3}, {keyB, eventTimestamp4}, {keyC, -1}}); in TEST()
259 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST()
263 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 6, bucket6, {keyA, keyB}, {keyC})); in TEST()
266 {{keyA, eventTimestamp6}, {keyB, eventTimestamp4}, {keyC, -1}}); in TEST()
278 MetricDimensionKey keyA = getMockMetricDimensionKey(1, "a"); in TEST() local
284 std::shared_ptr<DimToValMap> bucket9 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST()
300 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 9, bucket9, {}, {keyA, keyB, keyC, keyD})); in TEST()
303 {{keyA, -1}, {keyB, -1}, {keyC, -1}, {keyD, -1}, {keyE, -1}}); in TEST()
309 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST()
312 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 16, bucket16, {keyB}, {keyA, keyC, keyD})); in TEST()
319 {{keyA, -1}, {keyB, eventTimestamp2}, {keyC, -1}, {keyD, -1}, {keyE, -1}}); in TEST()
326 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 18, bucket18, {keyB}, {keyA, keyC, keyD})); in TEST()
332 {{keyA, -1}, {keyB, eventTimestamp2}, {keyC, -1}, {keyD, -1}, {keyE, -1}}); in TEST()
342 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 20, bucket20, {keyB}, {keyA, keyC, keyD})); in TEST()
349 {{keyA, -1}, {keyB, eventTimestamp4}, {keyC, -1}, {keyD, -1}, {keyE, -1}}); in TEST()
357 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 20, bucket20, {keyB}, {keyA, keyC, keyD})); in TEST()
364 {{keyA, -1}, {keyB, eventTimestamp4}, {keyC, -1}, {keyD, -1}, {keyE, -1}}); in TEST()
372 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 25, bucket25, {}, {keyA, keyB, keyC, keyD})); in TEST()
377 {{keyA, -1}, {keyB, eventTimestamp4}, {keyC, -1}, {keyD, -1}, {keyE, -1}}); in TEST()
385 {keyA, keyB, keyC, keyD, keyE})); in TEST()
391 {{keyA, -1}, {keyB, -1}, {keyC, -1}, {keyD, -1}, {keyE, -1}}); in TEST()
396 {keyA, keyB, keyC, keyD})); in TEST()
402 {{keyA, -1}, {keyB, -1}, {keyC, -1}, {keyD, -1}, {keyE, eventTimestamp6 + 7}}); in TEST()