ad9f8480c8e08b95d6c217ec4a126bd93b7f376a,tests/python/pants_test/backend/jvm/tasks/test_scalastyle.py,ScalastyleTest,test_get_non_synthetic_scala_targets,#ScalastyleTest#,118

Before Change



    // Now create the task and run the non_synthetic scala-only filtering.
    task = self._create_scalastyle_task_from_context(context)
    result_targets = task.get_non_synthetic_scala_targets(context.targets())

    // Only the scala target should remain
    self.assertEquals(1, len(result_targets))

After Change


                                                       sources=["Source.java"])

      // java_library - should be filtered
      java_target = self.make_target("a/java:j", JavaLibrary, sources=["Source.java"])

      // synthetic scala_library - should be filtered
      synthetic_scala_target = self.make_target("a/synthetic_scala:ss",
                                                ScalaLibrary,
                                                sources=["SourceGenerated.scala"],
                                                derived_from=scala_target)

      result_targets = Scalastyle.get_non_synthetic_scala_targets([java_target,
                                                                   scala_target,
                                                                   scala_target_with_java_source,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_scalastyle.py
Class Name: ScalastyleTest
Method Name: test_get_non_synthetic_scala_targets


Project Name: pantsbuild/pants
Commit Name: 7a1c105fa2d0318c5533d4fac98fb6bed911ef85
Time: 2018-02-01
Author: benjyw@gmail.com
File Name: contrib/python/src/python/pants/contrib/python/checks/tasks/python_eval.py
Class Name: PythonEval
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: 50777202e6e30750f8e60a21329ea3223c721038
Time: 2018-01-25
Author: benjyw@gmail.com
File Name: contrib/python/src/python/pants/contrib/python/checks/tasks2/python_eval.py
Class Name: PythonEval
Method Name: execute