<commit_before>#include <gtest/gtest.h>

#include <SMGRegion.hh>
#include <SMGObject.hh>
#include <SMGValue.hh>
#include <SMGEdgeHasValue.hh>
#include <SMGCType.hh>

const int SIZE4 = 4;
const int SIZE8 = 8;
const int SIZE12 = 12;

const int OFFSET0 = 0;
const int OFFSET2 = 2;
const int OFFSET4 = 4;
const int OFFSET6 = 6;

const SMGCType& MOCKTYPE4 = SMGCType::createTypeWithSize(4);
const SMGCType& MOCKTYPE12 = SMGCType::createTypeWithSize(12);

TEST(SMGEdgeHasValue, sanity) {
    const SMGObject& obj = SMGRegion(SIZE8, "object");
    const SMGValue& val = SMGValue::getNewValue();
    const SMGEdgeHasValue& hv = SMGEdgeHasValue(MOCKTYPE4, OFFSET4, obj, val);

    EXPECT_EQ(obj.getId(), hv.getObject().getId());
    EXPECT_EQ(OFFSET4, hv.getOffset());
    std::cout << &hv.getType() << std::endl;
    EXPECT_EQ(&MOCKTYPE4, &hv.getType());
    EXPECT_EQ(SIZE4, hv.getSizeInBytes());<commit_msg>Remove a forgotten debugging output<commit_after>#include <gtest/gtest.h>

#include <SMGRegion.hh>
#include <SMGObject.hh>
#include <SMGValue.hh>
#include <SMGEdgeHasValue.hh>
#include <SMGCType.hh>

const int SIZE4 = 4;
const int SIZE8 = 8;
const int SIZE12 = 12;

const int OFFSET0 = 0;
const int OFFSET2 = 2;
const int OFFSET4 = 4;
const int OFFSET6 = 6;

const SMGCType& MOCKTYPE4 = SMGCType::createTypeWithSize(4);
const SMGCType& MOCKTYPE12 = SMGCType::createTypeWithSize(12);

TEST(SMGEdgeHasValue, sanity) {
    const SMGObject& obj = SMGRegion(SIZE8, "object");
    const SMGValue& val = SMGValue::getNewValue();
    const SMGEdgeHasValue& hv = SMGEdgeHasValue(MOCKTYPE4, OFFSET4, obj, val);

    EXPECT_EQ(obj.getId(), hv.getObject().getId());
    EXPECT_EQ(OFFSET4, hv.getOffset());
    EXPECT_EQ(&MOCKTYPE4, &hv.getType());
    EXPECT_EQ(SIZE4, hv.getSizeInBytes());
{'fraction_non_alphanumeric': 0.14109050028105677, 'fraction_numerical': 0.03147835862844295, 'mean_word_length': 5.334519572953736, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '5882504', 'n_tokens_mistral': 707, 'n_tokens_neox': 680, 'n_words': 154}