Skip to content

Commit 6b1a4d3

Browse files
committed
unified: Add test exercising folder-based heuristic
1 parent f072c91 commit 6b1a4d3

6 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Driver { // name=Main.Driver
2+
}
3+
4+
class UniqueToMain {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
func main() {
2+
Driver(); // $ access=Main.Driver
3+
UniqueToMain(); // $ access=UniqueToMain
4+
UniqueToMock(); // $ access=UniqueToMock
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
func getDriver() -> Driver { // $ access=Main.Driver
2+
return Driver() // $ access=Main.Driver
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Driver { // name=Mock.Driver
2+
}
3+
4+
class UniqueToMock {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
func main() {
2+
Driver(); // $ access=Mock.Driver
3+
UniqueToMain(); // $ access=UniqueToMain
4+
UniqueToMock(); // $ access=UniqueToMock
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
func getDriver() -> Driver { // $ access=Mock.Driver
2+
return Driver() // $ access=Mock.Driver
3+
}

0 commit comments

Comments
 (0)