public class com.google.common.collect.testing.testers.SortedMapNavigationTester extends com.google.common.collect.testing.AbstractMapTester
{
private java.util.SortedMap navigableMap;
private java.util.Map$Entry a;
private java.util.Map$Entry c;
public void <init>()
{
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
specialinvoke v.<com.google.common.collect.testing.AbstractMapTester: void <init>()>();
return;
}
public void setUp() throws java.lang.Exception
{
java.util.Collection v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
com.google.common.collect.testing.features.CollectionSize v;
java.util.List v;
java.util.Map v;
int v, v, v;
java.lang.Object v, v, v, v;
java.util.Comparator v, v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
specialinvoke v.<com.google.common.collect.testing.AbstractMapTester: void setUp()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map getMap()>();
v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap> = v;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: com.google.common.collect.testing.features.CollectionSize getCollectionSize()>();
v = virtualinvoke v.<com.google.common.collect.testing.features.CollectionSize: int getNumElements()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.util.Collection getSampleElements(int)>(v);
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Iterable)>(v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.util.Comparator comparator()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Comparator entryComparator(java.util.Comparator)>(v);
staticinvoke <java.util.Collections: void sort(java.util.List,java.util.Comparator)>(v, v);
v = interfaceinvoke v.<java.util.List: int size()>();
if v < 1 goto label;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a> = v;
v = interfaceinvoke v.<java.util.List: int size()>();
if v < 3 goto label;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(2);
v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry c> = v;
label:
return;
}
public void testEmptyMapFirst()
{
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.util.NoSuchElementException v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
label:
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
interfaceinvoke v.<java.util.SortedMap: java.lang.Object firstKey()>();
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void fail()>();
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.util.NoSuchElementException from label to label with label;
}
public void testEmptyMapLast()
{
java.lang.Object v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.util.NoSuchElementException v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
label:
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.lang.Object lastKey()>();
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertNull(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void fail()>();
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.util.NoSuchElementException from label to label with label;
}
public void testSingletonMapFirst()
{
java.util.Map$Entry v;
java.lang.Object v, v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.lang.Object firstKey()>();
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testSingletonMapLast()
{
java.util.Map$Entry v;
java.lang.Object v, v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.lang.Object lastKey()>();
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testFirst()
{
java.util.Map$Entry v;
java.lang.Object v, v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.lang.Object firstKey()>();
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testLast()
{
java.util.Map$Entry v;
java.lang.Object v, v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry c>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.lang.Object lastKey()>();
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testHeadMapExclusive()
{
java.util.Map$Entry v, v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.lang.Object v, v;
java.util.SortedMap v, v;
boolean v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.SortedMap: java.util.SortedMap headMap(java.lang.Object)>(v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.SortedMap: boolean containsKey(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertFalse(boolean)>(v);
return;
}
public void testTailMapInclusive()
{
java.util.Map$Entry v, v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.lang.Object v, v;
java.util.SortedMap v, v;
boolean v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.SortedMap: java.util.SortedMap tailMap(java.lang.Object)>(v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.SortedMap: boolean containsKey(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertTrue(boolean)>(v);
return;
}
public void testHeadMap()
{
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
int v, v, v;
java.util.Collection v;
java.util.Set v;
com.google.common.collect.testing.features.CollectionSize v;
java.util.List v, v;
java.lang.Object v, v, v, v;
java.util.Comparator v, v;
java.util.SortedMap v, v, v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: com.google.common.collect.testing.features.CollectionSize getCollectionSize()>();
v = virtualinvoke v.<com.google.common.collect.testing.features.CollectionSize: int getNumElements()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.util.Collection getSampleElements(int)>(v);
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Iterable)>(v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.util.Comparator comparator()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Comparator entryComparator(java.util.Comparator)>(v);
staticinvoke <java.util.Collections: void sort(java.util.List,java.util.Comparator)>(v, v);
v = 0;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = interfaceinvoke v.<java.util.List: java.util.List subList(int,int)>(0, v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.SortedMap: java.util.SortedMap headMap(java.lang.Object)>(v);
v = interfaceinvoke v.<java.util.SortedMap: java.util.Set entrySet()>();
staticinvoke <com.google.common.collect.testing.Helpers: void assertEqualInOrder(java.lang.Iterable,java.lang.Iterable)>(v, v);
v = v + 1;
goto label;
label:
return;
}
public void testTailMap()
{
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
int v, v, v, v;
java.util.Collection v;
java.util.Set v;
com.google.common.collect.testing.features.CollectionSize v;
java.util.List v, v;
java.lang.Object v, v, v, v;
java.util.Comparator v, v;
java.util.SortedMap v, v, v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: com.google.common.collect.testing.features.CollectionSize getCollectionSize()>();
v = virtualinvoke v.<com.google.common.collect.testing.features.CollectionSize: int getNumElements()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.util.Collection getSampleElements(int)>(v);
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Iterable)>(v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.util.Comparator comparator()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Comparator entryComparator(java.util.Comparator)>(v);
staticinvoke <java.util.Collections: void sort(java.util.List,java.util.Comparator)>(v, v);
v = 0;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = interfaceinvoke v.<java.util.List: int size()>();
v = interfaceinvoke v.<java.util.List: java.util.List subList(int,int)>(v, v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.SortedMap: java.util.SortedMap tailMap(java.lang.Object)>(v);
v = interfaceinvoke v.<java.util.SortedMap: java.util.Set entrySet()>();
staticinvoke <com.google.common.collect.testing.Helpers: void assertEqualInOrder(java.lang.Iterable,java.lang.Iterable)>(v, v);
v = v + 1;
goto label;
label:
return;
}
public void testSubMap()
{
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
int v, v, v, v, v;
java.util.Collection v;
java.util.Set v;
com.google.common.collect.testing.features.CollectionSize v;
java.util.List v, v;
java.lang.Object v, v, v, v, v, v;
java.util.Comparator v, v;
java.util.SortedMap v, v, v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: com.google.common.collect.testing.features.CollectionSize getCollectionSize()>();
v = virtualinvoke v.<com.google.common.collect.testing.features.CollectionSize: int getNumElements()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.util.Collection getSampleElements(int)>(v);
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Iterable)>(v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.util.Comparator comparator()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Comparator entryComparator(java.util.Comparator)>(v);
staticinvoke <java.util.Collections: void sort(java.util.List,java.util.Comparator)>(v, v);
v = 0;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = v + 1;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = interfaceinvoke v.<java.util.List: java.util.List subList(int,int)>(v, v);
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.SortedMap: java.util.SortedMap subMap(java.lang.Object,java.lang.Object)>(v, v);
v = interfaceinvoke v.<java.util.SortedMap: java.util.Set entrySet()>();
staticinvoke <com.google.common.collect.testing.Helpers: void assertEqualInOrder(java.lang.Iterable,java.lang.Iterable)>(v, v);
v = v + 1;
goto label;
label:
v = v + 1;
goto label;
label:
return;
}
public void testSubMapIllegal()
{
java.util.Map$Entry v, v;
java.lang.Object v, v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
java.lang.IllegalArgumentException v;
java.util.SortedMap v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
label:
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry c>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.Map$Entry a>;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
interfaceinvoke v.<java.util.SortedMap: java.util.SortedMap subMap(java.lang.Object,java.lang.Object)>(v, v);
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void fail(java.lang.String)>("Expected IllegalArgumentException");
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.IllegalArgumentException from label to label with label;
}
public void testOrderedByComparator()
{
java.util.Iterator v;
java.util.Set v;
com.google.common.collect.testing.testers.SortedMapNavigationTester v;
com.google.common.collect.testing.testers.SortedMapNavigationTester$1 v;
int v;
java.lang.Object v, v, v, v;
java.util.Comparator v;
java.util.SortedMap v, v;
boolean v, v;
v := @this: com.google.common.collect.testing.testers.SortedMapNavigationTester;
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.util.Comparator comparator()>();
if v != null goto label;
v = new com.google.common.collect.testing.testers.SortedMapNavigationTester$1;
specialinvoke v.<com.google.common.collect.testing.testers.SortedMapNavigationTester$1: void <init>(com.google.common.collect.testing.testers.SortedMapNavigationTester)>(v);
v = v;
label:
v = v.<com.google.common.collect.testing.testers.SortedMapNavigationTester: java.util.SortedMap navigableMap>;
v = interfaceinvoke v.<java.util.SortedMap: java.util.Set entrySet()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = interfaceinvoke v.<java.util.Comparator: int compare(java.lang.Object,java.lang.Object)>(v, v);
if v >= 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <com.google.common.collect.testing.testers.SortedMapNavigationTester: void assertTrue(boolean)>(v);
v = v;
goto label;
label:
return;
}
}