MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/arrow/util/value_parsing_test.cc:128–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128TEST(StringConversion, ToBoolean) {
129 AssertConversion<BooleanType>("true", true);
130 AssertConversion<BooleanType>("tRuE", true);
131 AssertConversion<BooleanType>("FAlse", false);
132 AssertConversion<BooleanType>("false", false);
133 AssertConversion<BooleanType>("1", true);
134 AssertConversion<BooleanType>("0", false);
135
136 AssertConversionFails<BooleanType>("");
137}
138
139TEST(StringConversion, ToFloat) {
140 AssertConversion<FloatType>("1.5", 1.5f);

Callers

nothing calls this directly

Calls 8

AssertConversionFailsFunction · 0.85
FromBitsFunction · 0.85
AssertInvalidTimesFunction · 0.85
ParseTimestampISO8601Function · 0.85
AssertConversionFunction · 0.70
Float16Function · 0.70
valuesFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected