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
[Actions] Add emitter and action tests #24199
Conversation
`with-temp*` allows for unpaired bindings if you just want the default model. This would break the `let` that the hook was binding if you had an unpaired temp model followed by others.
Test hydration of :emitters Test hydration of :action Test http emitter execution Test emitter crud Test failure cases around emitter execution Small consistency changes made to non-test code that shouldn't affect happy path FE code, largely 404 checking and keyword/string consistency.
@@ -2,7 +2,7 @@ | |||
:show-docs-arity-on-same-line? true | |||
:project-specs [{:project-path "deps.edn" | |||
:classpath-cmd ["clojure" "-A:dev:ee:ee-dev:drivers:drivers-dev" "-Spath"]}] | |||
|
|||
:clean {:ns-inner-blocks-indentation :keep} |
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.
this prevent namespaces from changing
(:require [...])
to
(:require
[...])
part (:children binding+opts)] | ||
;; if children is size 1 then ensure nil is on the right side of the let | ||
:let [[binding-part opts] (:children binding+opts)] | ||
part [binding-part opts]] |
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.
this fixes bad analysis when with-temp*
doesn't use a pair of values for the model.
(mt/with-temp [Action [a] HttpAction [b {}]] ...)
This was expanding into [[Action HttpAction] (let [a b {}] ...)]
but should now turn into [[Action HttpAction] (let [a nil b {}] ...)]
Codecov Report
@@ Coverage Diff @@
## pod-writeback #24199 +/- ##
=================================================
+ Coverage 64.34% 64.57% +0.22%
=================================================
Files 2773 2783 +10
Lines 85443 86477 +1034
Branches 10631 10687 +56
=================================================
+ Hits 54978 55841 +863
- Misses 26157 26272 +115
- Partials 4308 4364 +56
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Fixes #24079
Adding tests for emitters and actions
Test hydration of :emitters
Test hydration of :action
Test http emitter execution
Test emitter crud
Test failure cases around emitter execution
Small consistency changes made to non-test code that shouldn't affect happy path FE code, largely 404 checking and keyword/string consistency.