Searched refs:iterable (Results 1 – 3 of 3) sorted by relevance
398 public static void assertEmpty(String message, Iterable<?> iterable) { in assertEmpty() argument399 if (iterable.iterator().hasNext()) { in assertEmpty()400 failNotEmpty(message, iterable.toString()); in assertEmpty()408 public static void assertEmpty(Iterable<?> iterable) { in assertEmpty() argument409 assertEmpty(null, iterable); in assertEmpty()432 public static void assertNotEmpty(String message, Iterable<?> iterable) { in assertNotEmpty() argument433 if (!iterable.iterator().hasNext()) { in assertNotEmpty()442 public static void assertNotEmpty(Iterable<?> iterable) { in assertNotEmpty() argument443 assertNotEmpty(null, iterable); in assertNotEmpty()
125 def exactly_one_of(iterable): argument126 return sum(1 for elem in iterable if elem) == 1
54 private void createItems(Iterable<DataBindingItem> iterable, final int itemCount, in createItems() argument63 for (DataBindingItem dataBindingItem : iterable) { in createItems()