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

Method testVarChar

java/core/src/test/org/apache/orc/TestUnicode.java:135–143  ·  view source on GitHub ↗
(int maxLength)

Source from the content-addressed store, hash-verified

133 }
134
135 public void testVarChar(int maxLength) throws Exception {
136 // char(n)
137 TypeDescription schema = TypeDescription.createVarchar().withMaxLength(maxLength);
138 String[] expected = new String[utf8strs.length];
139 for (int i = 0; i < utf8strs.length; i++) {
140 expected[i] = enforceMaxLength(utf8strs[i], maxLength);
141 }
142 verifyWrittenStrings(schema, utf8strs, expected, maxLength);
143 }
144
145 public void verifyWrittenStrings(TypeDescription schema, String[] inputs, String[] expected, int maxLength)
146 throws Exception {

Callers 1

testUtf8Method · 0.95

Calls 4

createVarcharMethod · 0.95
enforceMaxLengthMethod · 0.95
verifyWrittenStringsMethod · 0.95
withMaxLengthMethod · 0.80

Tested by

no test coverage detected