|
◆ generateRandomRecord()
template<typename T >
static Record<T> Euclid::Fits::Test::generateRandomRecord |
( |
const std::string & |
typeName | ) |
|
|
static |
Generate a random record.
- Template Parameters
-
- Parameters
-
typeName | The type name as a string, e.g. "unsigned long int" . |
In "unsigned long int" , "unsigned" and "long" are prefixes, and "int" is the suffix. The generated record is as follows:
- The keyword is made of the first letter of the prefixes and the suffix, capitalized, e.g.
"ULINT" ;
- The value is random;
- The unit is made of the first letter of the prefixes, e.g.
"ul" ;
- The comment is made of the first letter of the prefixes, a space, and the suffix, e.g.
"ul int" .
|