Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
e9a2765d
Commit
e9a2765d
authored
Sep 18, 2018
by
Hernan Ponce de Leon
Browse files
MCDC: Code Review [GREEN]
Signed-off-by:
Hernan Ponce de Leon
<
ponce@fortiss.org
>
parent
6f6038a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.testing/src/org/fortiss/af3/testing/mcdc/.ratings
View file @
e9a2765d
MCDCUtils.java
abe06c5
b4e2
404c19a67fceb1a022712c6ac883f YELLOW
MCDCUtils.java
7ac114cd2a668169bec
b4e
e
2
f4568d7b86607478 GREEN
org.fortiss.af3.testing/src/org/fortiss/af3/testing/mcdc/MCDCUtils.java
View file @
e9a2765d
...
...
@@ -79,14 +79,15 @@ public final class MCDCUtils {
}
if
(
term
instanceof
Var
)
{
IType
type
=
getVarType
((
VarBase
)
term
,
context
);
String
identifier
=
((
Var
)
term
).
getIdentifier
();
if
(
type
instanceof
TBool
)
{
return
ctx
.
mkBoolConst
(
prefix
+
((
Var
)
term
).
getI
dentifier
()
);
return
ctx
.
mkBoolConst
(
prefix
+
i
dentifier
);
}
if
(
type
instanceof
TInt
)
{
return
ctx
.
mkIntConst
(
prefix
+
((
Var
)
term
).
getI
dentifier
()
);
return
ctx
.
mkIntConst
(
prefix
+
i
dentifier
);
}
if
(
type
instanceof
TDouble
)
{
return
ctx
.
mkRealConst
(
prefix
+
((
Var
)
term
).
getI
dentifier
()
);
return
ctx
.
mkRealConst
(
prefix
+
i
dentifier
);
}
}
if
(
term
instanceof
FunctionCall
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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