<commit_before>/*
 * test_setupTunnel.cpp
 *
 *  Created on: 24 sep. 2015
 *      Author: Jesper
 */
#ifdef _MOCK_

#include "gtest/gtest.h"
#include "../src/setupTunnel.h"

class test_setupTunnel : public ::testing::Test {
protected:
	virtual void SetUp() {}
	virtual void TearDown() {}
};

#endif<commit_msg>Test is running, but the test sucks<commit_after>/*
 * test_setupTunnel.cpp
 *
 *  Created on: 24 sep. 2015
 *      Author: Jesper
 */
#ifdef _MOCK_

#include "gtest/gtest.h"
#include "../src/setupTunnel.h"

class test_setupTunnel : public ::testing::Test {
protected:
	virtual void SetUp() {}
	virtual void TearDown() {}
};

TEST(test_setupTunnel, handleSetupTunnel) {
	setupTunnel st;
	StaticJsonBuffer<1000> buffer;
	JsonObject &reply = buffer.createObject();

	StaticJsonBuffer<200> jsonBuffer;
	char json[] = "{\"sensor\":\"gps\",\"msg_uuid\":1351824120,\"data\":[48.756080,2.302038]}";
	JsonObject &root = jsonBuffer.parseObject(json);

	EXPECT_EQ(1, st.handleSetupTunnel(root ,reply));

}
#endif
{'fraction_non_alphanumeric': 0.1590909090909091, 'fraction_numerical': 0.044466403162055336, 'mean_word_length': 4.596685082872928, 'pattern_counts': {'":': 3, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2103735', 'n_tokens_mistral': 398, 'n_tokens_neox': 366, 'n_words': 79}