Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Prasetya, S.W.B. (Wishnu)
t3
Commits
0ac2f450
Commit
0ac2f450
authored
Jan 28, 2018
by
ISWB Prasetya
Browse files
trying some tweaks; but end up not installing it
parent
ce6212af
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Sequenic/T3/DerivativeSuiteGens/Gen2/G2.java
View file @
0ac2f450
...
...
@@ -221,9 +221,11 @@ public class G2 {
target
.
refine
()
;
worklist
.
evaluateAndPutBack
(
target
)
;
//target.saveSuite() ;
// save a minimized version of the test suite:
target
.
saveMinimizedSuite
();
target
.
saveSuite
()
;
// save a minimized version of the test suite; however this seem to drop
// mutation kill rates in some situation; so I will just comment this out.
// Will later make it configurable.
//target.saveMinimizedSuite();
return
0
;
}
).
count
()
;
// use count to force the map to be executed
...
...
@@ -289,11 +291,12 @@ public class G2 {
else
t3log
.
warning
(
CUT
.
getName
()
+
" is abstract or interface; but failed to find an implementation to target!"
);
if
(
abstractCUT
)
{
Method
[]
publicmethods
=
CUT
.
getMethods
()
;
for
(
Method
m
:
publicmethods
)
{
//Method[] publicmethods = CUT.getMethods() ;
Method
[]
CUTmethods
=
CUT
.
getDeclaredMethods
()
;
for
(
Method
m
:
CUTmethods
)
{
int
m_
=
m
.
getModifiers
()
;
if
(!
Modifier
.
isAbstract
(
m_
)
&&
Modifier
.
isStatic
(
m_
))
{
t3log
.
info
(
CUT
.
getName
()
+
" is abstract, but it has at least one concrete
public
and static method; so we target the class too."
);
t3log
.
info
(
CUT
.
getName
()
+
" is abstract, but it has at least one concrete and static method; so we target the class too."
);
g2s
.
add
(
new
G2
(
CUTname
,
config
))
;
break
;
}
...
...
src/Sequenic/T3/ImplementationMap.java
View file @
0ac2f450
...
...
@@ -209,6 +209,7 @@ public class ImplementationMap {
for
(
Constructor
co
:
C
.
getDeclaredConstructors
())
{
int
m
=
co
.
getModifiers
()
;
if
(
Modifier
.
isPublic
(
m
)
&&
!
Modifier
.
isAbstract
(
m
))
instantiation
.
register
(
co
)
;
//if (!Modifier.isPrivate(m) && ! Modifier.isAbstract(m)) instantiation.register(co) ;
}
}
for
(
Method
m
:
getPublicCreatorMethods
(
C
))
{
...
...
@@ -286,6 +287,7 @@ public class ImplementationMap {
for
(
Method
m
:
declaredmethods
)
{
int
mod
=
m
.
getModifiers
()
;
if
(!
Modifier
.
isStatic
(
mod
)
||
!
Modifier
.
isPublic
(
mod
)
||
Modifier
.
isAbstract
(
mod
))
continue
;
//if(! Modifier.isStatic(mod) || Modifier.isPrivate(mod) || Modifier.isAbstract(mod)) continue ;
if
(!
C
.
isAssignableFrom
(
m
.
getReturnType
()))
continue
;
boolean
takeC
=
false
;
for
(
Class
D
:
m
.
getParameterTypes
())
...
...
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