-
Notifications
You must be signed in to change notification settings - Fork 152
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
Add tests for driftctl #399
Conversation
Codecov Report
@@ Coverage Diff @@
## main #399 +/- ##
==========================================
+ Coverage 69.19% 70.23% +1.04%
==========================================
Files 281 281
Lines 6149 6149
==========================================
+ Hits 4255 4319 +64
+ Misses 1542 1476 -66
- Partials 352 354 +2
|
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.
We should have done that way sooner ! Love it, just one small comment on one test
ty, _ := gocty.ImpliedType(data) | ||
val, _ := gocty.ToCtyValue(data, ty) | ||
return &val | ||
}(), |
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.
You could have written the CtyVal like we did in the filter_engine tests:
CtyVal: func() *cty.Value {
v := cty.ObjectVal(map[string]cty.Value{
"test_field": cty.StringVal("value to filter on"),
})
return &v
}(),
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.
Obviously π€¦π» This is waaaay more readable thanks ππ»
ba8f1c9
to
7c112a8
Compare
Description
Add test for driftctl.go