aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-19 19:51:01 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-19 19:51:01 +0100
commitea1f4cc2987536c3ed3df5899e6cec2df890f1e6 (patch)
treeceb0324a2829523587c750d771fc83d849ae4e13 /test
parentd9bfa029b0ecf300ae47cf1033db2d5cb323d705 (diff)
downloaddokka-ea1f4cc2987536c3ed3df5899e6cec2df890f1e6.tar.gz
dokka-ea1f4cc2987536c3ed3df5899e6cec2df890f1e6.tar.bz2
dokka-ea1f4cc2987536c3ed3df5899e6cec2df890f1e6.zip
refactor extension setup; encapsulate extension in LocationService
Diffstat (limited to 'test')
-rw-r--r--test/src/TestAPI.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index d47770f8..0b4c2084 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -100,11 +100,11 @@ fun ContentNode.toTestString(): String {
}
class InMemoryLocation(override val path: String): Location {
- override fun relativePathTo(other: Location, extension: String): String = other.path
+ override fun relativePathTo(other: Location): String = other.path
}
object InMemoryLocationService: LocationService {
- override fun location(node: DocumentationNode) = InMemoryLocation(relativePathToNode(node));
+ override fun location(node: DocumentationNode) = InMemoryLocation(relativePathToNode(node))
}
val tempLocation = InMemoryLocation("")