(process-entry entry)testing dir-cache and dir-cache-entry
(def path (str "/tmp/gita/" (java.util.UUID/randomUUID))) (def tempdir (io/file path))
(git-status-call tempdir) (spit (str path "/hello.txt") "hello") (-> (git-add-call tempdir) (object/to-data)) => (contains-in {"hello.txt" set?}) ;;#{:smudged :merged}
(-> (git-add-call tempdir) (.getEntry 0) (object/to-data)) => (contains {:file-mode "100644", :stage 0, :object-id string? :last-modified number? :length number?, :path-string "hello.txt" :creation-time 0})
testing dir-cache and dir-cache-entry
(def path (str "/tmp/gita/" (java.util.UUID/randomUUID)))
(def tempdir (io/file path))
(git-status-call tempdir)
(spit (str path "/hello.txt") "hello")
(-> (git-add-call tempdir)
(object/to-data))
=> (contains-in {"hello.txt" set?}) ;;#{:smudged :merged}
(-> (git-add-call tempdir)
(.getEntry 0)
(object/to-data))
=> (contains {:file-mode "100644",
:stage 0,
:object-id string?
:last-modified number?
:length number?,
:path-string "hello.txt"
:creation-time 0})cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |