void function ( ) { Iterable < Integer > loc0 = FluentIterable . from ( Arrays . asList ( 1 , 2 , 3 , 4 ) ) . cycle ( ) . limit ( 50 ) ; MutationDetector loc1 = MutationDetectors . forValueWithCoder ( loc0 , IterableCoder . of ( VarIntCoder . of ( ) ) ) ; loc1 . verifyUnmodified ( ) ; }
tests that mutationdetectors #forvaluewithcoder does not false positive on an iterable that is not known to be bounded ; after coder-based cloning the boundwill be known and it will be a list so it will encode more compactly the secondtime around . concode_field_sep ExpectedException thrown concode_field_sep void testUnmodifiedLinkedList concode_elem_sep void testImmutableList concode_elem_sep void testEquivalentListOfArrays concode_elem_sep void testMutatingList concode_elem_sep void testImmutableSet concode_elem_sep void testUnmodifiedArray concode_elem_sep void testMutatingArray