MockCpg

io.shiftleft.semanticcpg.testing.package$.MockCpg
See theMockCpg companion object
case class MockCpg(cpg: Cpg)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def withArgument(callName: String, newNode: NewNode): MockCpg
def withCallArgument(callName: String, callArgName: String, code: String, index: Int): MockCpg
def withCallInMethod(methodName: String, callName: String, code: Option[String]): MockCpg
def withCustom(f: (DiffGraphBuilder, Cpg) => Unit): MockCpg
def withFile(filename: String): MockCpg
def withIdentifierArgument(callName: String, name: String, index: Int): MockCpg
def withLiteralArgument(callName: String, literalCode: String): MockCpg
def withLocalInMethod(methodName: String, localName: String): MockCpg
def withMetaData(language: String): MockCpg
def withMetaData(language: String, overlays: List[String]): MockCpg
def withMethod(name: String, external: Boolean, inTypeDecl: Option[String], fileName: String): MockCpg
def withMethodCall(calledMethod: String, callingMethod: String, code: Option[String]): MockCpg
def withNamespace(name: String, inFile: Option[String]): MockCpg
def withTagsOnMethod(methodName: String, methodTags: List[(String, String)], paramTags: List[(String, String)]): MockCpg
def withTypeDecl(name: String, isExternal: Boolean, inNamespace: Option[String], inFile: Option[String]): MockCpg

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product