Skip to content

Conversation

@darkleaf
Copy link
Owner

No description provided.

@@ -1,23 +1,26 @@
(ns darkleaf.di.tutorial.x-override-deps-test
(:require
[clojure.test :as t]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

override-deps vs redefine-deps ? или что-то еще/

Comment on lines +816 to +822
(let [deps (into {}
(remove (fn [[k _]] (contains? mapping k)))
(p/dependencies factory))
mapping-deps (transduce (map p/dependencies)
combine-dependencies
(vals mapping))]
(combine-dependencies deps mapping-deps)))
Copy link
Owner Author

@darkleaf darkleaf May 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Может быть можно как-то компактнее записать?

Тут нужно только из deps удалить ключи из mappings, а сами mappings по идее могут содержать удаляемые зависимости

наверное стоит тестами обмазать, то, что я имею в виду

@darkleaf darkleaf requested a review from KGOH May 18, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant