Source

metrics-clojure / metrics-clojure-core / test / metrics / test / counters.clj

Diff from to

metrics-clojure-core/test/metrics/test/counters.clj

   (:use [clojure.test]))
 
 
+(counters/defcounter ["test" "counters" "defcountered"])
+
+(deftest test-defcounter
+  (is (= (counters/value defcountered) 0))
+  (counters/inc! defcountered)
+  (is (= (counters/value defcountered) 1)))
+
 (deftest test-inc
   (let [c (counters/counter ["test" "counters" "test-inc"])]
     (is (= (counters/value c) 0))