Skip to content

Commit

Permalink
remove rust from main project repo
Browse files Browse the repository at this point in the history
  • Loading branch information
lsproule committed Oct 26, 2023
1 parent da083ea commit 0375b32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Test/Test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Tests::Command {

std::string genBase64String(int random_string_length);
bool testCommandInit();
}

Expand Down
5 changes: 2 additions & 3 deletions src/Test/TestCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@
#include "Test.hpp"


namespace Tests::Commands {
namespace Tests::Command {

std::string genBase64String() {
std::string genBase64String(int random_string_length) {
std::string base64_chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789-_";

std::string random_string;
int random_string_length = 10;
for (int i = 0; i < random_string_length; ++i) {
random_string += base64_chars[(rand() + time(NULL)) % base64_chars.length()];
}
Expand Down
4 changes: 3 additions & 1 deletion src/Test/TestGenerators.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#ifdef TEST
#include "./Test.hpp"
#include "../Generators/Generators.hpp"
#include <catch2/catch_test_macros.hpp>
#include <memory>

namespace Test::Generators {

const std::string long_string = "LoremipsumdolorsitametofficiaexcepteurexfugiatreprehenderitenimlaboreculpasintadnisiLorempariaturmollitexesseexercitationametNisianimcupidatatexcepteurofficiaReprehenderitnostrudnostrudipsumLoremestaliquipametvoluptatevoluptatedolorminimnullaestproidentNostrudofficiapariaturutofficiaSitirureelitesseeanullasuntexoccaecatreprehenderitcommodoofficiadolorLoremduislaboriscupidatatofficiavoluptateCulpaproidentadipisicingidnullanisilaborisexinLoremsuntduisofficiaeiusmodAliquareprehenderitcommodoexnonexcepteurduissuntvelitenimVoluptatelaborissintcupidatatullamcouteaconsecteturetestculpaetculpaduisLoremipsumdolorsitametofficiaexcepteurexfugiatreprehenderitenimlaboreculpasintadnisiLorempariaturmollitexesseexercitationametNisianimcupidatatexcepteurofficiaReprehenderitnostrudnostrudipsumLoremestaliquipametvoluptatevoluptatedolorminimnullaestproidentNostrudofficiapariaturutofficiaSitirureelitesseeanullasuntexoccaecatreprehenderitcommodoofficiadolorLoremduislaboriscupidatatofficiavoluptateCulpaproidentadipisicingidnullanisilaborisexinLoremsuntduisofficiaeiusmodAliquareprehenderitcommodoexnonexcepteurduissuntvelitenimVoluptatelaborissintcupidatatullamcouteaconsecteturetestculpaetculpaduis";
const std::string long_string = Tests::Command::genBase64String(256);

namespace CMakeLists {
bool testCmakeVersion(){
std::vector<std::string> versions{"3.28", "3.27", "3.26", "3.25", "3.24", "3.23", "3.22", "3.21", "3.20", "3.19", "3.18", "3.17", "3.16", "3.15", "3.14", "3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7", "3.6", "3.5", "3.4", "3.3", "3.2", "3.1", "3.0"};
Expand Down

0 comments on commit 0375b32

Please sign in to comment.