Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph
Commits
203eaebc
Commit
203eaebc
authored
Feb 28, 2019
by
Olivier Stasse
Browse files
[tests] Improves unitary test on pool.cpp
parent
e7614beb
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/pool.cpp
View file @
203eaebc
...
...
@@ -120,7 +120,7 @@ BOOST_AUTO_TEST_CASE (pool_display)
" fontcolor = black, color = black, fillcolor=cyan, style=filled, shape=box ]
\n
"
"}
\n
"
;
/* Check the two substring (remove the date) */
/* Check the two substring (remove the date)
-*
*/
std
::
string
s_output_wgph
=
oss_output_wgph
.
str
();
std
::
string
s_crmk
=
"*/"
;
...
...
@@ -134,6 +134,15 @@ BOOST_AUTO_TEST_CASE (pool_display)
BOOST_CHECK
(
two_sub_string_identical
);
// Test name of an object.
std
::
istringstream
an_iss
(
"MyEntityInst.in_double"
);
dg
::
SignalBase
<
int
>
&
aSignal
=
dg
::
PoolStorage
::
getInstance
()
->
getSignal
(
an_iss
);
std
::
string
aSignalName
=
aSignal
.
getName
();
testExistence
=
aSignalName
==
"MyEntity(MyEntityInst)::input(double)::in_double"
;
BOOST_CHECK
(
testExistence
);
// Deregister the entity.
dg
::
PoolStorage
::
getInstance
()
->
deregisterEntity
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment