formatting

This commit is contained in:
Jan Krebs 2020-02-20 16:08:38 +01:00
parent c6559f8a3e
commit 87901a0e91
13 changed files with 131 additions and 136 deletions

View file

@ -127,8 +127,7 @@
(when (this/is-dir? resource)
(Files/createDirectories target-path fs/no-attributes))
(when (this/is-file? resource)
(Files/copy source-path target-path fs/overwrite-preserve-attributes)
))))))
(Files/copy source-path target-path fs/overwrite-preserve-attributes)))))))
(defn distinct-resources-by-path
[resources]

View file

@ -42,8 +42,7 @@
(when (some? java-path)
(if is-jar-resource
(jar/create-resource virtual-path java-path)
(fs/create-resource virtual-path java-path :java-classpath-filesystem))
))))
(fs/create-resource virtual-path java-path :java-classpath-filesystem))))))
(s/defn get-resources ;:- [this/Resource]
"base-path is sensible for getting the right jar from classpath. So base-path

View file

@ -21,7 +21,6 @@
(is
(sut/path-if-exists "dummy_only_in_cp_fs")))
(deftest should-get-resources-from-jar-and-fs-classpath
(is (=
[]

View file

@ -38,7 +38,6 @@
(is
(sut/path-if-exists fs-root nil "/dummy/dummy_from_fs")))
(deftest test-list-entries-for-dir
(is
(= ["dummy2"

View file

@ -16,8 +16,7 @@
(deftest test-is-from-classpath-jar?
(is
(sut/is-from-classpath-jar? (.toURI (io/resource "dummy"))))
)
(sut/is-from-classpath-jar? (.toURI (io/resource "dummy")))))
(deftest test-path-if-exists
(is