Arkanjo 0.1
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
test.cpp File Reference
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <filesystem>
#include "../../base/utils.hpp"
#include "../../pre/preprocessor.hpp"
#include "../../base/config.hpp"
+ Include dependency graph for test.cpp:

Go to the source code of this file.

Functions

bool should_skip (string s)
 
bool areEqualFile (string file1, string file2)
 
string remove_prefix (string a, int rem)
 
void Test ()
 
int main (int argc, char *argv[])
 

Variables

const string EXPECTED_DIR = "tests/e2e/expected"
 
const string CURRENT_DIR = "tests/e2e/current"
 
const string CODEBASE_DIR = "tests/e2e/codebase"
 
vector< string > skip_check_list = {"/tmp/config.txt","/tmp/output_tool.txt","/tmp/output_parsed.txt"}
 

Function Documentation

◆ areEqualFile()

bool areEqualFile ( string file1,
string file2 )

Definition at line 27 of file test.cpp.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 105 of file test.cpp.

◆ remove_prefix()

string remove_prefix ( string a,
int rem )

Definition at line 46 of file test.cpp.

◆ should_skip()

bool should_skip ( string s)

Definition at line 18 of file test.cpp.

◆ Test()

void Test ( )

Definition at line 58 of file test.cpp.

Variable Documentation

◆ CODEBASE_DIR

const string CODEBASE_DIR = "tests/e2e/codebase"

Definition at line 14 of file test.cpp.

◆ CURRENT_DIR

const string CURRENT_DIR = "tests/e2e/current"

Definition at line 13 of file test.cpp.

◆ EXPECTED_DIR

const string EXPECTED_DIR = "tests/e2e/expected"

Definition at line 12 of file test.cpp.

◆ skip_check_list

vector<string> skip_check_list = {"/tmp/config.txt","/tmp/output_tool.txt","/tmp/output_parsed.txt"}

Definition at line 16 of file test.cpp.