Added tests for checking call grap sizes.

This commit is contained in:
Achim D. Brucker 2016-08-31 08:42:53 +01:00
parent 190d53a85a
commit 427529102a
3 changed files with 38 additions and 1 deletions

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)