-
Notifications
You must be signed in to change notification settings - Fork 94
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 primitive types. #29
Conversation
31969ca
to
3749993
Compare
These tests rely on hashicorp/terraform-plugin-go#85, which fixes unmarshaling into uninstantiated *big.Floats. |
6af9c11
to
ba037f3
Compare
|
||
// testAttributeType is a dummy attribute type to compare against with Equal to | ||
// make sure we can handle unexpected types being passed in. | ||
type testAttributeType struct{} |
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.
v nice 👍
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.
delightful, especially the tests
This adds to #28 by creating implementations of the attr.Type interface for our primitive types: bools, numbers, and strings.
99d63f3
to
cdc6765
Compare
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This adds to #28 by creating implementations of the attr.Type interface for our primitive types: bools, numbers, and strings.
This is likewise a split of code originally written for #11 that is being split out into its own PR for easier review. (Or, at least, review will be easier when #28 is merged, which should happen before this is merged.)