• (user-file-position)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source midje/unprocessed.clj:46 top

(defn user-file-position []
  "Guesses the file position (basename and line number) that the user is
   most likely to be interested in if a test fails."
   (let [integers (iterate inc 1)
	 positions (without-java (map file-position integers))
	 above-midje-files (strip-leading-infrastructure positions)
     (first above-midje-files))
   (catch Exception e ["unknown file" 0]))
Vars in midje.unprocessed/user-file-position: defn first let
Used in 0 other vars

Comments top

No comments for user-file-position. Log in to add a comment.