hashicorp / hashicorp/terraform-plugin-framework
Add a test helper for testing `attr.Type` / `attr.Value` implementations
Open
enhancement
types
- Dominant language
- Go
- Stars
- 384
- Forks
- 107
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
There are a few behaviors that `attr.Type` and `attr.Value` implementations must adhere to that aren't enforced through the compiler but can be trivially unit tested for. We should consider adding a helper function to run those tests as part of the `attr` package. See an example from a long-ago prototype: https://github.com/paddycarver/tf-framework-future/blob/main/type_testing.go
Contributor guide
Assessment
This issue has not been assessed yet.