@@ -2,7 +2,7 @@ package io.shiftleft.passes
2
2
3
3
import better .files .File
4
4
import io .shiftleft .SerializedCpg
5
- import io .shiftleft .codepropertygraph .Cpg
5
+ import io .shiftleft .codepropertygraph .generated . Cpg
6
6
import io .shiftleft .codepropertygraph .generated .Properties
7
7
import io .shiftleft .codepropertygraph .generated .nodes .{NewCall , NewFile }
8
8
import org .scalatest .matchers .should .Matchers
@@ -16,7 +16,7 @@ class ParallelCpgPassNewTests extends AnyWordSpec with Matchers {
16
16
17
17
private object Fixture {
18
18
def apply (keyPools : Option [Iterator [KeyPool ]] = None )(f : (Cpg , CpgPassBase ) => Unit ): Unit = {
19
- val cpg = Cpg .emptyCpg
19
+ val cpg = Cpg .empty
20
20
val pool = keyPools.flatMap(_.nextOption())
21
21
class MyPass (cpg : Cpg ) extends ConcurrentWriterCpgPass [String ](cpg, " MyPass" , pool) {
22
22
override def generateParts (): Array [String ] = Array (" foo" , " bar" )
@@ -56,7 +56,7 @@ class ParallelCpgPassNewTests extends AnyWordSpec with Matchers {
56
56
}
57
57
58
58
" fail for schema violations" in {
59
- val cpg = Cpg .emptyCpg
59
+ val cpg = Cpg .empty
60
60
val pass = new ConcurrentWriterCpgPass [String ](cpg, " pass2" ) {
61
61
override def generateParts () = Array (" a" , " b" )
62
62
override def runOnPart (diffGraph : DiffGraphBuilder , part : String ): Unit =
@@ -83,7 +83,7 @@ class ParallelCpgPassNewTests extends AnyWordSpec with Matchers {
83
83
}
84
84
85
85
" add NewNodes that are referenced in different parts only once" in {
86
- val cpg = Cpg .emptyCpg
86
+ val cpg = Cpg .empty
87
87
val pass = new ConcurrentWriterCpgPass [String ](cpg, " pass2" ) {
88
88
val call1 = NewCall ().name(" call1" )
89
89
val call2 = NewCall ().name(" call2" )
0 commit comments