diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-08-07 13:20:41 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-08-07 13:20:41 +0200 |
commit | 8040146e51c3d357e23add98dcab7cd974c524b9 (patch) | |
tree | 0fa933a7588e4d4404ca19e3ed93f0915f83ea33 /container-search | |
parent | c856fa754b76d5f89c10923808038301d2e5918a (diff) |
Cleanup
Diffstat (limited to 'container-search')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileVariantsTestCase.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileVariantsTestCase.java b/container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileVariantsTestCase.java index 0bcae97598b..03faeaae8a0 100644 --- a/container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileVariantsTestCase.java +++ b/container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileVariantsTestCase.java @@ -13,7 +13,6 @@ import com.yahoo.search.query.profile.QueryProfileRegistry; import com.yahoo.search.query.profile.compiled.CompiledQueryProfile; import com.yahoo.search.query.profile.compiled.CompiledQueryProfileRegistry; import com.yahoo.search.query.profile.compiled.ValueWithSource; -import com.yahoo.yolean.trace.TraceNode; import org.junit.Ignore; import org.junit.Test; @@ -1249,18 +1248,6 @@ public class QueryProfileVariantsTestCase { assertEquals("yahoo/alerts", cAlert.get("vertical.custid", toMap("entry=alert", "intl=us", "lang=en-US"))); } - @Test - public void testCompactedVariants() { - QueryProfile test = new QueryProfile("main_single_feed"); - test.setDimensions(new String[] {"x"}); - test.set("InX1Only", "x1", new String[] { "x1" }, null); - - CompiledQueryProfile ctest = test.compile(null); - assertEquals("x1", ctest.get("InX1Only", toMap("x=x1"))); - assertEquals(null, ctest.get("InX1Only", toMap("x=x2"))); - assertEquals(null, ctest.get("InX1Only")); - } - private void assertGet(String expectedValue, String parameter, String[] dimensionValues, QueryProfile profile, CompiledQueryProfile cprofile) { Map<String,String> context=toMap(profile,dimensionValues); assertEquals("Looking up '" + parameter + "' for '" + Arrays.toString(dimensionValues) + "'",expectedValue,cprofile.get(parameter,context)); |