Lines Matching refs:OT_ERROR_NONE
71 if (testCase->mError != OT_ERROR_NONE) in VerifyParser()
86 if (error == OT_ERROR_NONE) in VerifyParser()
103 {"0", OT_ERROR_NONE, false}, // Zero as false value in TestParsingInts()
104 {"1", OT_ERROR_NONE, true}, // Non-zero as true value in TestParsingInts()
105 {"0x0", OT_ERROR_NONE, false}, // Zero as false value in TestParsingInts()
106 {"0x1", OT_ERROR_NONE, true}, // Non-zero (in hex) as true value in TestParsingInts()
107 {"10", OT_ERROR_NONE, true}, // Non-zero as true value in TestParsingInts()
114 {"0", OT_ERROR_NONE, 0}, in TestParsingInts()
115 {"1", OT_ERROR_NONE, 1}, in TestParsingInts()
116 {"74", OT_ERROR_NONE, 74}, in TestParsingInts()
117 {"255", OT_ERROR_NONE, 255}, // Max `uint8` value (decimal format) in TestParsingInts()
118 {"0xa", OT_ERROR_NONE, 0xa}, in TestParsingInts()
119 {"0x04", OT_ERROR_NONE, 4}, in TestParsingInts()
120 {"0x7e", OT_ERROR_NONE, 0x7e}, in TestParsingInts()
121 {"0xcd", OT_ERROR_NONE, 0xcd}, in TestParsingInts()
122 {"0x0", OT_ERROR_NONE, 0}, in TestParsingInts()
123 {"0xff", OT_ERROR_NONE, 0xff}, // Max `uint8` value (hex format) in TestParsingInts()
124 {"0x0000ff", OT_ERROR_NONE, 0xff}, // Hex format (extra zeros) in TestParsingInts()
125 {"0xB", OT_ERROR_NONE, 0xb}, in TestParsingInts()
126 {"0X04", OT_ERROR_NONE, 4}, in TestParsingInts()
127 {"0X7E", OT_ERROR_NONE, 0x7e}, in TestParsingInts()
128 {"0XCD", OT_ERROR_NONE, 0xcd}, in TestParsingInts()
129 {"0X0", OT_ERROR_NONE, 0}, in TestParsingInts()
130 {"0XFF", OT_ERROR_NONE, 0xff}, in TestParsingInts()
131 {"00", OT_ERROR_NONE, 0}, in TestParsingInts()
142 {"0", OT_ERROR_NONE, 0}, in TestParsingInts()
143 {"1245", OT_ERROR_NONE, 1245}, in TestParsingInts()
144 {"0xa", OT_ERROR_NONE, 0xa}, in TestParsingInts()
145 {"0xab7d", OT_ERROR_NONE, 0xab7d}, in TestParsingInts()
146 {"0X1AE", OT_ERROR_NONE, 0x1ae}, in TestParsingInts()
147 {"0X7E", OT_ERROR_NONE, 0x7e}, in TestParsingInts()
148 {"65535", OT_ERROR_NONE, 65535}, // Max `uint16` value (decimal format) in TestParsingInts()
149 {"0xffff", OT_ERROR_NONE, 0xffff}, // Max `uint16` value (hex format) in TestParsingInts()
159 {"0", OT_ERROR_NONE, 0}, in TestParsingInts()
160 {"1234567", OT_ERROR_NONE, 1234567}, in TestParsingInts()
161 {"0xc", OT_ERROR_NONE, 0xc}, in TestParsingInts()
162 {"0x01234567", OT_ERROR_NONE, 0x1234567}, in TestParsingInts()
163 {"0XABCDEF09", OT_ERROR_NONE, 0xabcdef09}, in TestParsingInts()
164 {"0X54321", OT_ERROR_NONE, 0x54321}, in TestParsingInts()
165 {"4294967295", OT_ERROR_NONE, 4294967295}, // Max `uint32` value (decimal format) in TestParsingInts()
166 {"0xffffffff", OT_ERROR_NONE, 0xffffffff}, // Max `uint32` value (hex format) in TestParsingInts()
176 {"0", OT_ERROR_NONE, 0}, in TestParsingInts()
177 {"123456789087654321", OT_ERROR_NONE, 123456789087654321}, in TestParsingInts()
178 {"0xb", OT_ERROR_NONE, 0xb}, in TestParsingInts()
179 {"0x1234567890acbdef", OT_ERROR_NONE, 0x1234567890acbdef}, in TestParsingInts()
180 {"0XFEDCBA9876543210", OT_ERROR_NONE, 0xfedcba9876543210}, in TestParsingInts()
181 …{"0xffffffffffffffff", OT_ERROR_NONE, 0xffffffffffffffff}, // Max `uint64` value (hex forma… in TestParsingInts()
182 …{"18446744073709551615", OT_ERROR_NONE, 18446744073709551615ull}, // Max `uint64` value (decimal f… in TestParsingInts()
190 {"0", OT_ERROR_NONE, 0}, in TestParsingInts()
191 {"-1", OT_ERROR_NONE, -1}, in TestParsingInts()
192 {"+74", OT_ERROR_NONE, 74}, in TestParsingInts()
193 {"-0x12", OT_ERROR_NONE, -0x12}, in TestParsingInts()
194 {"-0XB", OT_ERROR_NONE, -11}, in TestParsingInts()
195 {"127", OT_ERROR_NONE, 127}, // Max `int8` value in TestParsingInts()
196 {"-128", OT_ERROR_NONE, -128}, // Min `int8` value in TestParsingInts()
206 {"-1", OT_ERROR_NONE, -1}, in TestParsingInts()
207 {"+0x1234", OT_ERROR_NONE, 0x1234}, in TestParsingInts()
208 {"-0X6E8", OT_ERROR_NONE, -0x6E8}, in TestParsingInts()
209 {"32767", OT_ERROR_NONE, 32767}, // Max `int16` value in TestParsingInts()
210 {"0X7FFF", OT_ERROR_NONE, 0x7fff}, // Max `int16` value (hex value) in TestParsingInts()
211 {"-32768", OT_ERROR_NONE, -32768}, // Min `int16` value in TestParsingInts()
212 {"-0x8000", OT_ERROR_NONE, -0x8000}, // Min `int16` value (hex value) in TestParsingInts()
221 {"-256", OT_ERROR_NONE, -256}, in TestParsingInts()
222 {"+0x12345678", OT_ERROR_NONE, 0x12345678}, in TestParsingInts()
223 {"-0X6677aB", OT_ERROR_NONE, -0X6677aB}, in TestParsingInts()
224 {"2147483647", OT_ERROR_NONE, 2147483647}, in TestParsingInts()
225 {"0x7fffFFFF", OT_ERROR_NONE, 0x7fffffff}, // Max `int32` value in TestParsingInts()
226 {"-2147483648", OT_ERROR_NONE, -2147483648}, // Min `int32` value in TestParsingInts()
268 …VerifyOrQuit(ParseAsHexString("123", buffer, 1) != OT_ERROR_NONE, "ParseAsHexString() passed with … in TestParsingHexStrings()
272 …VerifyOrQuit(ParseAsHexString("123x", buffer, 2) != OT_ERROR_NONE, "ParseAsHexString() passed with… in TestParsingHexStrings()
273 …VerifyOrQuit(ParseAsHexString(" 123", buffer, 2) != OT_ERROR_NONE, "ParseAsHexString() passed with… in TestParsingHexStrings()
277 …VerifyOrQuit(ParseAsHexString("1122", buf3) != OT_ERROR_NONE, "ParseAsHexString() passed with bad … in TestParsingHexStrings()
278 …VerifyOrQuit(ParseAsHexString("1122334", buf3) != OT_ERROR_NONE, "ParseAsHexString() passed with b… in TestParsingHexStrings()
279 …VerifyOrQuit(ParseAsHexString("11223344", buf3) != OT_ERROR_NONE, "ParseAsHexString() passed with … in TestParsingHexStrings()
335 if (error == OT_ERROR_NONE) in TestParsingHexStrings()