hashicorp / hashicorp/terraform-plugin-framework

Add a test helper for testing `attr.Type` / `attr.Value` implementations

Open
#173 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.