Skip to content

Commit

Permalink
-Make virtual_test simpler.
Browse files Browse the repository at this point in the history
-Update docs.
  • Loading branch information
lorenzo-gomez-windhover committed Dec 18, 2024
1 parent 8d326b2 commit 5251621
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 49 deletions.
28 changes: 0 additions & 28 deletions unit-test/cchannel.hpp

This file was deleted.

18 changes: 0 additions & 18 deletions unit-test/hk.h

This file was deleted.

3 changes: 2 additions & 1 deletion unit-test/main_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3535,7 +3535,7 @@ TEST_CASE("Test classes with virtual methods.", "[main_test#21]")

REQUIRE(rc == JUICER_OK);

std::string getSymbolQuery{"SELECT * FROM symbols where name= \"SHK\" ; "};
std::string getSymbolQuery{"SELECT * FROM symbols where name= \"t2\" ; "};

/**
*Clean up our database handle and objects in memory.
Expand All @@ -3555,6 +3555,7 @@ TEST_CASE("Test classes with virtual methods.", "[main_test#21]")
REQUIRE(rc == SQLITE_OK);
// NOTE:For now, anonymous are stored as an empty string.
// This still is WIP:https://github.com/WindhoverLabs/juicer/issues/43
// Another issue related to this:https://github.com/WindhoverLabs/juicer/issues/44
REQUIRE(symbolRecords.size() == 0);

// uint32_t numberOfColumns = 0;
Expand Down
22 changes: 20 additions & 2 deletions unit-test/virtual_test.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#include "hk.h"
#define USE_VIRTUAL
#define USE_ARRAY
struct t1
{
typedef struct
{
} t2;

HkTlm_t HkTlm;
#ifdef USE_VIRTUAL
virtual
#endif

void
f1();
};

t1::t2 v1
#ifdef USE_ARRAY
[1]
#endif
;

0 comments on commit 5251621

Please sign in to comment.