Added tests for checking call grap sizes.
This commit is contained in:
parent
190d53a85a
commit
427529102a
|
@ -61,6 +61,19 @@ class Featherweight extends FlatSpec with Matchers with BeforeAndAfterAll {
|
|||
app.analyze(ApkName, options, connections)
|
||||
}
|
||||
|
||||
"Merged CallGraph" should "contain 6.6k nodes" in {
|
||||
app.getCallGraphSize() should be (6631 +- 20)
|
||||
}
|
||||
|
||||
"JavaScriptCallGraph" should "contain 0.8k nodes" in {
|
||||
app.getJSCallGraphSize() should be (856 +- 10)
|
||||
}
|
||||
|
||||
"JavaCallGraph" should "be contain 5.7k nodes" in {
|
||||
app.getJavaCallGraphSize() should be (5775 +- 10)
|
||||
}
|
||||
|
||||
|
||||
"Java -> JavaScript" should "report ten hits" taggedAs (ManuallyChecked) in {
|
||||
app.getJava2JSHits() should be (10)
|
||||
}
|
||||
|
|
|
@ -66,6 +66,18 @@ class Featherweight_100_350 extends FlatSpec with Matchers with BeforeAndAfterAl
|
|||
app.analyze(ApkName, options, connections)
|
||||
}
|
||||
|
||||
"Merged CallGraph" should "contain 6.6k nodes" in {
|
||||
app.getCallGraphSize() should be (6627 +- 20)
|
||||
}
|
||||
|
||||
"JavaScriptCallGraph" should "contain 0.8k nodes" in {
|
||||
app.getJSCallGraphSize() should be (858 +- 10)
|
||||
}
|
||||
|
||||
"JavaCallGraph" should "be contain 5.7k nodes" in {
|
||||
app.getJavaCallGraphSize() should be (5769 +- 10)
|
||||
}
|
||||
|
||||
"Java -> JavaScript" should "report fourteen hits" taggedAs (ManuallyChecked) in {
|
||||
app.getJava2JSHits() should be (14)
|
||||
}
|
||||
|
|
|
@ -64,7 +64,19 @@ class Featherweight_100_630 extends FlatSpec with Matchers with BeforeAndAfterAl
|
|||
val app = new AppTest();
|
||||
override def beforeAll(){
|
||||
app.analyze(ApkName, options, connections)
|
||||
}
|
||||
}
|
||||
|
||||
"Merged CallGraph" should "contain 4.3k nodes" in {
|
||||
app.getCallGraphSize() should be (4351 +- 20)
|
||||
}
|
||||
|
||||
"JavaScriptCallGraph" should "contain 0.9k nodes" in {
|
||||
app.getJSCallGraphSize() should be (918 +- 10)
|
||||
}
|
||||
|
||||
"JavaCallGraph" should "be contain 3.4k nodes" in {
|
||||
app.getJavaCallGraphSize() should be (3433 +- 10)
|
||||
}
|
||||
|
||||
"Java -> JavaScript" should "report fourteen hits" taggedAs (ManuallyChecked) in {
|
||||
app.getJava2JSHits() should be (14)
|
||||
|
|
Loading…
Reference in New Issue