From 1011655d2ef76a0c0aa29dbbff091dab139198e3 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 24 Oct 2020 16:32:18 +0200 Subject: Add FlowGraph --- tests/test-flowgraph.cpp | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/test-flowgraph.cpp (limited to 'tests/test-flowgraph.cpp') diff --git a/tests/test-flowgraph.cpp b/tests/test-flowgraph.cpp new file mode 100644 index 0000000..132af4b --- /dev/null +++ b/tests/test-flowgraph.cpp @@ -0,0 +1,50 @@ +#include "flowgraph/data.h" +#include "flowgraph/graph.h" +#include "flowgraph/node.h" +#include "flowgraph/storage.h" + +#include + +#include "gmock/gmock.h" +#include "gtest/gtest.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std::string_literals; +namespace fs = std::filesystem; + +using namespace FlowGraph; + +class FlowGraphTest: public ::testing::Test +{ +protected: + FlowGraphTest() { + //debug = true; + } + ~FlowGraphTest() { + } + void SetUp(){ + } + void TearDown(){ + } +}; + +TEST_F(FlowGraphTest, build_graph) { + Graph graph; + + Data pointer{ MakeLocalPointer("malloc1") }; + Data size{ MakeLocalSize("size1") }; + std::shared_ptr malloc1 {std::make_shared(pointer, size) }; + std::shared_ptr free1{ std::make_shared(pointer) }; + + graph.push_back(malloc1); + graph.push_back(free1); +} -- cgit v1.2.3