Source

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

Diff from to

File metrics-clojure-core/test/metrics/test/meters.clj

   (:use [metrics.test.test-utils])
   (:use [clojure.test]))
 
+(meters/defmeter ["test" "meters" "defmetered"] "test-events")
+
+(deftest test-defmeter
+  (is (= (meters/rate-mean defmetered) 0.0))
+  (meters/mark! defmetered)
+  (is (> (meters/rate-mean defmetered) 0.0)))
 
 (deftest test-rate-mean
   (let [m (meters/meter ["test" "meters" "test-rate-mean"] "test-events")]