File tree Expand file tree Collapse file tree
slicer-design-sketch/src/slicer_design_sketch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11(ns slicer-design-sketch.core
2+ (:require [clojure.test :as test])
23 (:gen-class ))
34
45(defmacro pdump [x]
1011 (println " ----------------" )
1112 x#)))
1213
14+ ; ;; These are dummies or mocks for Mohit's mapper
15+ (defn mp-to-channels [mp])
16+ (defn gl-to-pls [gl])
17+ (defn legal-entity-to-mps [le])
18+
19+ (def proto-driver-table
20+ (pdump (map (partial zipmap [:chan :pl :driver-name :prime :amount ])
21+ [[1000 23 :subscription-rev :p1 79 ]
22+ [1000 23 :subscription-rev :p2 0 ]
23+ [1000 23 :subscription-rev :p3 29 ]
24+ ])))
25+
1326(def driver-table
1427 (pdump (map (partial zipmap [:chan :pl :driver-name :asin :prime :amount ])
1528 [[1000 23 :prod-cogs " B00012345" :p1 5 ]
6174 (driver-spec :prod-cogs (first pnls))))
6275
6376(defn -main
64- " I don't do a whole lot ... yet ."
77+ " Just run all tests ."
6578 [& args]
6679 ; ; work around dangerous default behaviour in Clojure
6780 (alter-var-root #'*read-eval* (constantly false ))
68- (println " Hello, World!" ))
81+
82+ (test/run-all-tests #"slicer-design-sketch.core-test" ))
You can’t perform that action at this time.
0 commit comments