Skip to content

Commit

Permalink
fix - failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
khemrajrathore committed Jul 8, 2023
1 parent c5f09c4 commit 38f2069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ class RubySrc2Cpg extends X2CpgFrontend[Config] {
object RubySrc2Cpg {

def postProcessingPasses(cpg: Cpg, config: Option[Config] = None): List[CpgPassBase] =
List(
//new RubyTypeRecoveryPass(cpg),
new NaiveCallLinker(cpg))
List(new RubyTypeRecoveryPass(cpg), new NaiveCallLinker(cpg))

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MethodOneTests extends RubyCode2CpgFixture {

"should allow traversing to methodReturn" in {
cpg.method.name("foo").methodReturn.l.size shouldBe 1
cpg.method.name("foo").methodReturn.typeFullName.head shouldBe "ANY"
cpg.method.name("foo").methodReturn.typeFullName.head shouldBe "String"
}

"should allow traversing to method" in {
Expand Down

0 comments on commit 38f2069

Please sign in to comment.