MCPcopy Create free account
hub / github.com/apache/arrow-rs / test

Method test

arrow-cast/src/parse.rs:64–66  ·  view source on GitHub ↗

Returns true if the byte at `idx` in the original string equals `b`

(&self, idx: usize, b: u8)

Source from the content-addressed store, hash-verified

62
63 /// Returns true if the byte at `idx` in the original string equals `b`
64 fn test(&self, idx: usize, b: u8) -> bool {
65 self.digits[idx] == b.wrapping_sub(b'0')
66 }
67
68 /// Parses a date of the form `1997-01-31`
69 fn date(&self) -> Option<NaiveDate> {

Callers 3

dateMethod · 0.45
timeMethod · 0.45
string_to_datetimeFunction · 0.45

Calls 1

wrapping_subMethod · 0.45

Tested by

no test coverage detected