|
gem5
v21.0.1.0
|
Go to the source code of this file.
Functions | |
| TEST (StrTest, EatLeadWhite) | |
| TEST (StrTest, EatLeadWhiteNoLeadingWhitespace) | |
| TEST (StrTest, EatEndWhite) | |
| TEST (StrTest, EatEndWhiteNoTrailingWhitespace) | |
| TEST (StrTest, EatWhite) | |
| TEST (StrTest, EatWhiteNoWhitespace) | |
| TEST (StrTest, ToLower) | |
| TEST (StrTest, SplitFirst) | |
| TEST (StrTest, SplitFirstNoChar) | |
| TEST (StrTest, SplitFirstOnFirstChar) | |
| TEST (StrTest, SplitLast) | |
| TEST (StrTest, SplitLastNoChar) | |
| TEST (StrTest, SplitLastOnLastChar) | |
| TEST (StrTest, TokenizeOnSpace) | |
| TEST (StrTest, TokenizeOnSpaceIgnFalse) | |
| TEST (StrTest, TokenizedTokenDoesNotExist) | |
| TEST (StrTest, ToNumber8BitInt) | |
| TEST (StrTest, ToNumber8BitIntStringOutOfRange) | |
| TEST (StrTest, ToNumber8BitIntInvalidString) | |
| TEST (StrTest, ToNumberUnsigned8BitInt) | |
| TEST (StrTest, ToNumberUnsigned8BitIntNegative) | |
| TEST (StrTest, ToNumberUnsigned8BitIntRoundDown) | |
| Test that a double that can be converted to int is always rounded down. More... | |
| TEST (StrTest, ToNumber8BitUnsignedLimit) | |
| Test that a double can still be converted to int as long as it is below the numerical limit + 1. More... | |
| TEST (StrTest, ToNumber8BitUnsignedOutOfRange) | |
| Test that a double cannot be converted to int when it passes the numerical limit. More... | |
| TEST (StrTest, ToNumberUnsignedScientific) | |
| Test that a scientific number cannot be converted to int. More... | |
| TEST (StrTest, ToNumberIntScientificNegative) | |
| Test that a negative scientific number cannot be converted to int. More... | |
| TEST (StrTest, ToNumber64BitInt) | |
| TEST (StrTest, ToNumber64BitIntInvalidString) | |
| TEST (StrTest, ToNumberEnum) | |
| TEST (StrTest, DISABLED_ToNumberEnumInvalid) | |
| Test that trying to convert a number to an enum that is not valid fails. More... | |
| TEST (StrTest, ToNumberFloat) | |
| TEST (StrTest, ToNumberFloatIntegerString) | |
| TEST (StrTest, ToNumberFloatNegative) | |
| TEST (StrTest, ToNumberDouble) | |
| TEST (StrTest, ToNumberDoubleIntegerString) | |
| TEST (StrTest, ToNumberDoubleNegative) | |
| TEST (StrTest, ToNumberScientific) | |
| Test that a scientific number is converted properly to double. More... | |
| TEST (StrTest, ToBoolTrue) | |
| TEST (StrTest, ToBoolFalse) | |
| TEST (StrTest, ToBoolInvalidInput) | |
| TEST (StrTest, QuoteStringNoSpace) | |
| TEST (StrTest, QuoteStringWithSpace) | |
| TEST (StrTest, QuoteQuotedString) | |
| TEST (StrTest, QuoteStringWithTab) | |
| TEST (StrTest, StartswithDoubleStringDoesStartWith) | |
| TEST (StrTest, StartswithDoubleStringDoesNotStartWith) | |
| TEST (StrTest, StartswithDoubleCharArrayDoesStartWith) | |
| TEST (StrTest, StartswithDoubleCharArrayDoesNotStartWith) | |
| TEST (StrTest, StartswithStringCharArrayDoesStartWith) | |
| TEST (StrTest, StartswithStringCharArrayDoesNotStartWith) | |
| TEST | ( | StrTest | , |
| DISABLED_ToNumberEnumInvalid | |||
| ) |
Test that trying to convert a number to an enum that is not valid fails.
Definition at line 369 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| EatEndWhite | |||
| ) |
Definition at line 63 of file str.test.cc.
References eat_end_white(), and X86ISA::val.
| TEST | ( | StrTest | , |
| EatEndWhiteNoTrailingWhitespace | |||
| ) |
Definition at line 70 of file str.test.cc.
References eat_end_white(), and X86ISA::val.
| TEST | ( | StrTest | , |
| EatLeadWhite | |||
| ) |
Definition at line 49 of file str.test.cc.
References eat_lead_white(), and X86ISA::val.
| TEST | ( | StrTest | , |
| EatLeadWhiteNoLeadingWhitespace | |||
| ) |
Definition at line 56 of file str.test.cc.
References eat_lead_white(), and X86ISA::val.
| TEST | ( | StrTest | , |
| EatWhite | |||
| ) |
Definition at line 77 of file str.test.cc.
References eat_white(), and X86ISA::val.
| TEST | ( | StrTest | , |
| EatWhiteNoWhitespace | |||
| ) |
Definition at line 84 of file str.test.cc.
References eat_lead_white(), and X86ISA::val.
| TEST | ( | StrTest | , |
| QuoteQuotedString | |||
| ) |
Definition at line 482 of file str.test.cc.
References quote().
| TEST | ( | StrTest | , |
| QuoteStringNoSpace | |||
| ) |
Definition at line 472 of file str.test.cc.
References quote().
| TEST | ( | StrTest | , |
| QuoteStringWithSpace | |||
| ) |
Definition at line 477 of file str.test.cc.
References quote().
| TEST | ( | StrTest | , |
| QuoteStringWithTab | |||
| ) |
Definition at line 490 of file str.test.cc.
References quote().
| TEST | ( | StrTest | , |
| SplitFirst | |||
| ) |
Definition at line 110 of file str.test.cc.
References split_first(), and X86ISA::val.
| TEST | ( | StrTest | , |
| SplitFirstNoChar | |||
| ) |
Definition at line 122 of file str.test.cc.
References split_first(), and X86ISA::val.
| TEST | ( | StrTest | , |
| SplitFirstOnFirstChar | |||
| ) |
Definition at line 134 of file str.test.cc.
References split_first(), and X86ISA::val.
| TEST | ( | StrTest | , |
| SplitLast | |||
| ) |
Definition at line 146 of file str.test.cc.
References split_last(), and X86ISA::val.
| TEST | ( | StrTest | , |
| SplitLastNoChar | |||
| ) |
Definition at line 158 of file str.test.cc.
References split_last(), and X86ISA::val.
| TEST | ( | StrTest | , |
| SplitLastOnLastChar | |||
| ) |
Definition at line 170 of file str.test.cc.
References split_last(), and X86ISA::val.
| TEST | ( | StrTest | , |
| StartswithDoubleCharArrayDoesNotStartWith | |||
| ) |
Definition at line 526 of file str.test.cc.
References ArmISA::s, and startswith().
| TEST | ( | StrTest | , |
| StartswithDoubleCharArrayDoesStartWith | |||
| ) |
Definition at line 519 of file str.test.cc.
References ArmISA::s, and startswith().
| TEST | ( | StrTest | , |
| StartswithDoubleStringDoesNotStartWith | |||
| ) |
Definition at line 512 of file str.test.cc.
References ArmISA::s, and startswith().
| TEST | ( | StrTest | , |
| StartswithDoubleStringDoesStartWith | |||
| ) |
Definition at line 505 of file str.test.cc.
References ArmISA::s, and startswith().
| TEST | ( | StrTest | , |
| StartswithStringCharArrayDoesNotStartWith | |||
| ) |
Definition at line 540 of file str.test.cc.
References ArmISA::s, and startswith().
| TEST | ( | StrTest | , |
| StartswithStringCharArrayDoesStartWith | |||
| ) |
Definition at line 533 of file str.test.cc.
References ArmISA::s, and startswith().
| TEST | ( | StrTest | , |
| ToBoolFalse | |||
| ) |
Definition at line 456 of file str.test.cc.
| TEST | ( | StrTest | , |
| ToBoolInvalidInput | |||
| ) |
Definition at line 462 of file str.test.cc.
| TEST | ( | StrTest | , |
| ToBoolTrue | |||
| ) |
Definition at line 449 of file str.test.cc.
| TEST | ( | StrTest | , |
| TokenizedTokenDoesNotExist | |||
| ) |
Definition at line 235 of file str.test.cc.
References tokenize(), and X86ISA::val.
| TEST | ( | StrTest | , |
| TokenizeOnSpace | |||
| ) |
Definition at line 187 of file str.test.cc.
References tokenize(), and X86ISA::val.
| TEST | ( | StrTest | , |
| TokenizeOnSpaceIgnFalse | |||
| ) |
Definition at line 210 of file str.test.cc.
References tokenize(), and X86ISA::val.
| TEST | ( | StrTest | , |
| ToLower | |||
| ) |
Definition at line 95 of file str.test.cc.
References to_lower(), and X86ISA::val.
| TEST | ( | StrTest | , |
| ToNumber64BitInt | |||
| ) |
Definition at line 340 of file str.test.cc.
References output(), to_number(), and sc_dt::to_string().
| TEST | ( | StrTest | , |
| ToNumber64BitIntInvalidString | |||
| ) |
Definition at line 349 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumber8BitInt | |||
| ) |
Definition at line 251 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumber8BitIntInvalidString | |||
| ) |
Definition at line 266 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumber8BitIntStringOutOfRange | |||
| ) |
Definition at line 259 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumber8BitUnsignedLimit | |||
| ) |
Test that a double can still be converted to int as long as it is below the numerical limit + 1.
Definition at line 305 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumber8BitUnsignedOutOfRange | |||
| ) |
Test that a double cannot be converted to int when it passes the numerical limit.
Definition at line 317 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberDouble | |||
| ) |
Definition at line 407 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberDoubleIntegerString | |||
| ) |
Definition at line 416 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberDoubleNegative | |||
| ) |
Definition at line 425 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberEnum | |||
| ) |
Definition at line 356 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberFloat | |||
| ) |
Definition at line 380 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberFloatIntegerString | |||
| ) |
Definition at line 389 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberFloatNegative | |||
| ) |
Definition at line 398 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberIntScientificNegative | |||
| ) |
Test that a negative scientific number cannot be converted to int.
Definition at line 333 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberScientific | |||
| ) |
Test that a scientific number is converted properly to double.
Definition at line 435 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberUnsigned8BitInt | |||
| ) |
Definition at line 273 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberUnsigned8BitIntNegative | |||
| ) |
Definition at line 281 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberUnsigned8BitIntRoundDown | |||
| ) |
Test that a double that can be converted to int is always rounded down.
Definition at line 289 of file str.test.cc.
References output(), and to_number().
| TEST | ( | StrTest | , |
| ToNumberUnsignedScientific | |||
| ) |
Test that a scientific number cannot be converted to int.
Definition at line 325 of file str.test.cc.
References output(), and to_number().