Skip to content

Commit

Permalink
Rename monketype--run-log to monkeytype--log
Browse files Browse the repository at this point in the history
  • Loading branch information
jpablobr committed Nov 18, 2020
1 parent 54e6b36 commit ae60d22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions monkeytype.el
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle"

(when monkeytype--insert-log
(async-start
`(lambda () ,(monkeytype--run-log run) 1)
`(lambda () ,(monkeytype--log run) 1)
(lambda (result)
(message "Monkeytype: Log generated successfully. (%s)" result))))))

Expand Down Expand Up @@ -793,17 +793,17 @@ Total time is the sum of all the last entries' elapsed-seconds from all runs."

;;;; Log:

(defun monkeytype--run-log (run)
(defun monkeytype--log (run)
"Log for the RUN."
(insert "Log:")
(insert (monkeytype--run-log>header))
(insert (monkeytype--log>header))
(dotimes (i (length (ht-get run 'entries)))
(let* ((entries (reverse (ht-get run 'entries)))
(entry (elt entries i)))
(insert (monkeytype--run-log>entry entry))))
(insert (monkeytype--log>entry entry))))
(insert "\n\n"))

(defun monkeytype--run-log>header ()
(defun monkeytype--log>header ()
"Log header."
(let ((log-header
'(" I/S Idx "
Expand All @@ -818,7 +818,7 @@ Total time is the sum of all the last entries' elapsed-seconds from all runs."
" Errs ")))
(format "\n|%s|" (mapconcat 'identity log-header "|"))))

(defun monkeytype--run-log>entry (entry)
(defun monkeytype--log>entry (entry)
"Format ENTRY."
(let* ((source-index (ht-get entry 'source-index))
(typed-entry (ht-get entry 'typed-entry))
Expand Down

0 comments on commit ae60d22

Please sign in to comment.