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

Method testChar

java/core/src/test/org/apache/orc/TestUnicode.java:125–133  ·  view source on GitHub ↗
(int maxLength, boolean hasRTrim)

Source from the content-addressed store, hash-verified

123 }
124
125 public void testChar(int maxLength, boolean hasRTrim) throws Exception {
126 // char(n)
127 TypeDescription schema = TypeDescription.createChar().withMaxLength(maxLength);
128 String[] expected = new String[utf8strs.length];
129 for (int i = 0; i < utf8strs.length; i++) {
130 expected[i] = getPaddedValue(utf8strs[i], maxLength, hasRTrim);
131 }
132 verifyWrittenStrings(schema, utf8strs, expected, maxLength);
133 }
134
135 public void testVarChar(int maxLength) throws Exception {
136 // char(n)

Callers 1

testUtf8Method · 0.95

Calls 4

createCharMethod · 0.95
getPaddedValueMethod · 0.95
verifyWrittenStringsMethod · 0.95
withMaxLengthMethod · 0.80

Tested by

no test coverage detected