| 423 | // **** Start testing replace variant list by key valid **** |
| 424 | C_ATTR(replaceQVariantListValidByKey, :Local :AutoArgs) |
| 425 | void replaceQVariantListValidByKey(Context *c) |
| 426 | { |
| 427 | QVariantList list1; |
| 428 | list1.append(QVariant::fromValue<quint32>(865469)); |
| 429 | list1.append(QVariant::fromValue<QString>(u"Lorem ipsum 2"_s)); |
| 430 | list1.append(QVariant::fromValue<float>(7848.23423f)); |
| 431 | list1.append(QVariant::fromValue<QByteArray>(QByteArrayLiteral("Lorem ipsum 2"))); |
| 432 | Memcached::setByKey("replaceGroup", "replace7", list1, std::chrono::seconds{5}); |
| 433 | Memcached::ReturnType rt; |
| 434 | const QVariantList list2 = getTestVariantList(); |
| 435 | setValidity(c, |
| 436 | Memcached::replaceByKey( |
| 437 | "replaceGroup", "replace7", list2, std::chrono::seconds{5}, &rt)); |
| 438 | } |
| 439 | |
| 440 | // **** Start testing replace variant list by key invalid **** |
| 441 | C_ATTR(replaceQVariantListInvalidByKey, :Local :AutoArgs) |
nothing calls this directly
no outgoing calls
no test coverage detected