| 128 | } |
| 129 | |
| 130 | String BoolType::insertNumberEntry(RandomGenerator & rg, StatementGenerator & gen, const uint32_t, const uint32_t) const |
| 131 | { |
| 132 | if (rg.nextSmallNumber() < 8) |
| 133 | { |
| 134 | const static DB::Strings comp = {"<", "<=", ">", ">=", "=", "=", "=", "<>", "<>"}; |
| 135 | String buf = "(number % "; |
| 136 | |
| 137 | buf += std::to_string(rg.randomInt<uint32_t>(1, 10)); |
| 138 | buf += ") "; |
| 139 | buf += rg.pickRandomly(comp); |
| 140 | buf += " "; |
| 141 | buf += std::to_string(rg.randomInt<uint32_t>(1, 10)); |
| 142 | return buf; |
| 143 | } |
| 144 | return appendRandomRawValue(rg, gen); |
| 145 | } |
| 146 | |
| 147 | String IntType::typeName(const bool, const bool) const |
| 148 | { |
no test coverage detected