codex
Loading...
Searching...
No Matches
test.hpp
Go to the documentation of this file.
1#ifndef CODEX_BASE64_TEST_H
2#define CODEX_BASE64_TEST_H
3
4#include <random>
5#include <vector>
6
7#include <QTest>
8
9class Base64Test : public QObject {
10 Q_OBJECT
11 static constexpr std::size_t N_SAMPLES = 8, MAX_SIZE = 1 << 13;
12 std::mt19937 gen;
13 std::vector<std::size_t> sizes;
14public:
16private slots:
18 void rfc_4648();
27 void invalid();
28 void pad_data();
29 void pad();
30};
31
32#endif
Definition test.hpp:9
void rfc_4648_encode()
static constexpr std::size_t MAX_SIZE
Definition test.hpp:11
void invalid()
void rfc_4648_encode_data()
void rfc_4648_decode()
static constexpr std::size_t N_SAMPLES
Definition test.hpp:11
void base64_decode()
void base64_decode_data()
void base64_encode_data()
void pad_data()
void rfc_4648()
std::vector< std::size_t > sizes
Definition test.hpp:13
void rfc_4648_data()
void base64_encode()
void pad()
void rfc_4648_decode_data()
std::mt19937 gen
Definition test.hpp:12