test: getRequestFromFunction

This commit is contained in:
2019-06-14 09:04:46 +02:00
parent 2d494d6e3e
commit baa2976e80
4 changed files with 23 additions and 3 deletions

View File

@@ -151,8 +151,12 @@ class Connection(
}
private fun fetchFunctions(functionsDirectory: File) {
functionsDirectory.walk().filter { it.isDirectory }.forEach { directory ->
directory.walk().filter { it.isFile }.forEach { file ->
functionsDirectory.walk().filter {
it.isDirectory
}.forEach { directory ->
directory.walk().filter {
it.isFile
}.forEach { file ->
val fileContent = file.readText()
getDefinitions(fileContent).forEach {
functions[it.name] = it