FR: utilize slices and maps Golang packages for testing helper functions #322
Labels
enhancement
New feature or request
waiting-response
Issues or pull requests waiting for an external response
With the advent of the
slices
andmaps
packages promotion from experimental to core in Go 1.21, and generics in 1.17, we now have e.g. https://pkg.go.dev/slices#Equal. Could we have helper functions as part of the type https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/helper/resource#TestCheckFunc that e.g. ascertainlist
andset
equality instead of using the cumbersome https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/helper/resource#example-TestCheckResourceAttr-TypeListAttribute?There are for sure other examples, but I feel the above is demonstrative of what I am trying to communicate.
The text was updated successfully, but these errors were encountered: