### Question:
TupleToRange implements Function<Tuple2<String,IndexInfo>,Iterator<QueryPlan>> { public static boolean isShardRange(String shard) { return shard.indexOf('_') >= 0; } TupleToRange(JexlNode currentNode, ShardQueryConfiguration config); Iterator<QueryPlan> apply(Tuple2<String,IndexInfo> tuple); static boolean isDocumentRange(IndexInfo indexInfo); static boolean isShardRange(String shard); static Iterator<QueryPlan> createDocumentRanges(JexlNode queryNode, String shard, IndexInfo indexMatches, boolean isTldQuery); static Iterator<QueryPlan> createShardRange(JexlNode queryNode, String shard, IndexInfo indexInfo); static Iterator<QueryPlan> createDayRange(JexlNode queryNode, String shard, IndexInfo indexInfo);  }### Answer:
@Test public void testIsShardRange() { String shardRange = "20190314_0"; String dayRange = "20190314"; assertTrue(TupleToRange.isShardRange(shardRange)); assertFalse(TupleToRange.isShardRange(dayRange)); }