File tree 5 files changed +17
-15
lines changed
src/interactive/scala/tools/nsc/interactive/tests 5 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,10 @@ abstract class InteractiveTest
86
86
loadSources()
87
87
runDefaultTests()
88
88
}
89
- }.linesIterator.map(normalize).foreach(println)
89
+ }.linesIterator.filterNot(filterOutLines). map(normalize).foreach(println)
90
90
}
91
91
92
+ protected def filterOutLines (line : String ) = false
92
93
protected def normalize (s : String ) = s
93
94
94
95
/** Load all sources before executing the test. */
Original file line number Diff line number Diff line change 1
1
reload: Main.scala
2
2
3
- askTypeCompletion at Main.scala(7 ,6)
3
+ askTypeCompletion at Main.scala(11 ,6)
4
4
================================================================================
5
- [response] askTypeCompletion at (7,6)
6
- retrieved 46 members
7
- [inaccessible] private[package lang] def getStackTraceDepth(): Int
8
- [inaccessible] private[package lang] def getStackTraceElement(x$1: Int): StackTraceElement
9
- [inaccessible] protected[package lang] def clone(): Object
10
- [inaccessible] protected[package lang] def finalize(): Unit
5
+ [response] askTypeCompletion at (11,6)
11
6
def +(other: String): String
12
7
def ->[B](y: B): (concurrent.ExecutionException, B)
13
8
def ensuring(cond: Boolean): concurrent.ExecutionException
Original file line number Diff line number Diff line change 1
1
import scala .tools .nsc .interactive .tests .InteractiveTest
2
2
3
- object Test extends InteractiveTest
3
+ object Test extends InteractiveTest {
4
+
5
+ override protected def filterOutLines (line : String ) =
6
+ line.contains(" inaccessible" ) || line.contains(" retrieved " )
7
+
8
+ }
Original file line number Diff line number Diff line change @@ -3,11 +3,6 @@ reload: Main.scala
3
3
askTypeCompletion at Main.scala(7,6)
4
4
================================================================================
5
5
[response] askTypeCompletion at (7,6)
6
- retrieved 46 members
7
- [inaccessible] private[package lang] def getStackTraceDepth(): Int
8
- [inaccessible] private[package lang] def getStackTraceElement(x$1: Int): StackTraceElement
9
- [inaccessible] protected[package lang] def clone(): Object
10
- [inaccessible] protected[package lang] def finalize(): Unit
11
6
def +(other: String): String
12
7
def ->[B](y: B): (concurrent.ExecutionException, B)
13
8
def ensuring(cond: Boolean): concurrent.ExecutionException
Original file line number Diff line number Diff line change 1
1
import scala .tools .nsc .interactive .tests .InteractiveTest
2
+ import scala .tools .nsc .util
2
3
3
- object Test extends InteractiveTest
4
+ object Test extends InteractiveTest {
5
+
6
+ override protected def filterOutLines (line : String ) =
7
+ line.contains(" inaccessible" ) || line.contains(" retrieved " )
8
+
9
+ }
You can’t perform that action at this time.
0 commit comments