-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphviz #25
Conversation
@@ -826,3 +826,68 @@ | |||
(p/demolish factory obj) | |||
(after-demolish! {:key key :object obj}) | |||
nil)))))) | |||
|
|||
(defn inspect [] | |||
(fn [registry] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add space
(t/deftest ok | ||
(with-open [info (di/start `c (di/inspect))] | ||
(t/is (= [{:key `c :deps [`a `b]} | ||
{:key `a :deps nil} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove a key with nil value?
@@ -826,3 +826,68 @@ | |||
(p/demolish factory obj) | |||
(after-demolish! {:key key :object obj}) | |||
nil)))))) | |||
|
|||
(defn inspect [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should move it into a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:ok) | ||
|
||
(t/deftest ok | ||
(with-open [info (di/start `c (di/inspect))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not be a middleware
(di/inspect `c registry-middlewares)
(dependencies [_] | ||
(p/dependencies factory)) | ||
(build [_ deps] | ||
(into [{:key key :deps (keys deps)}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{:key key
:deps (keys deps)
:dep-types (p/dependencies this)}
No description provided.