Back
jar-name (clj)
(source)function
(jar-name s)
Examples
migratus
(ns migratus.test.utils
(:require [clojure.test :refer :all]
[migratus.utils :refer :all]))
(deftest test-jar-name
(is (nil? (jar-name nil)))
(testing "handles file prefix"
(is (= "///tmp/default/clojure-1.10.1.jar"
(jar-name "file:///tmp/default/clojure-1.10.1.jar"))))
(testing "handles '+' in paths"
(is (= "/tmp/default+uberjar/foo.jar"
(jar-name "/tmp/default+uberjar/foo.jar")))))