MCPcopy Create free account
hub / github.com/apache/orc / data

Method data

java/core/src/test/org/apache/orc/TestOrcTimezone2.java:52–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 static TimeZone defaultTimeZone = TimeZone.getDefault();
51
52 private static Stream<Arguments> data() {
53 String[] allTimeZones = TimeZone.getAvailableIDs();
54 Random rand = new Random(123);
55 int len = allTimeZones.length;
56 int n = 500;
57 Arguments[] data = new Arguments[n];
58 for (int i = 0; i < n; i++) {
59 int wIdx = rand.nextInt(len);
60 int rIdx = rand.nextInt(len);
61 data[i] = Arguments.of(allTimeZones[wIdx], allTimeZones[rIdx]);
62 }
63 return Stream.of(data);
64 }
65
66 @BeforeEach
67 public void openFileSystem(TestInfo testInfo) throws Exception {

Callers

nothing calls this directly

Calls 2

nextIntMethod · 0.80
ofMethod · 0.80

Tested by

no test coverage detected