Files
lez-programs/apps/shared/wallet/tests/cpp/WalletIdlDecoderLinkTest.cpp
Ricardo Guilherme Schmidt 8c3e6fccfe feat(wallet): humanize shared wallet experience
Consolidate wallet account decoding and portfolio handling around the shared Rust IDL decoder. Simplify AMM wallet integration, remove obsolete caches and network plumbing, and cover account selection and live flows.
2026-08-21 17:38:45 -03:00

23 lines
536 B
C++

#include "WalletIdlDecoder.h"
#include <QtTest>
class WalletIdlDecoderLinkTest final : public QObject {
Q_OBJECT
private slots:
void linksDefaultDecoder();
};
void WalletIdlDecoderLinkTest::linksDefaultDecoder()
{
const WalletDecodeResult result = WalletIdlDecoder::decode(
QByteArrayLiteral("not-json"), {});
QCOMPARE(result.status, QStringLiteral("error"));
QCOMPARE(result.error, QStringLiteral("invalid_idl"));
}
QTEST_GUILESS_MAIN(WalletIdlDecoderLinkTest)
#include "WalletIdlDecoderLinkTest.moc"