package testsuite
import "github.com/pelletier/go-toml/v2/testsuite"
Package testsuite provides helper functions for interoperating with the language-agnostic TOML test suite at github.com/BurntSushi/toml-test.
Index ¶
- func CmpJSON(t *testing.T, key string, want, have interface{})
- func DecodeStdin() error
- func Marshal(v interface{}) ([]byte, error)
- func Unmarshal(data []byte, v interface{}) error
- func ValueToTaggedJSON(doc interface{}) ([]byte, error)
Functions ¶
func CmpJSON ¶
func DecodeStdin ¶
func DecodeStdin() error
DecodeStdin is a helper function for the toml-test binary interface. TOML input is read from STDIN and a resulting tagged JSON representation is written to STDOUT.
func Marshal ¶
Marshal is a helpfer function for calling toml.Marshal
Only needed to avoid package import loops.
func Unmarshal ¶
Unmarshal is a helper function for calling toml.Unmarshal.
Only needed to avoid package import loops.
func ValueToTaggedJSON ¶
ValueToTaggedJSON takes a data structure and returns the tagged JSON representation.
Source Files ¶
add.go json.go parser.go rm.go testsuite.go
- Version
- v2.0.0-beta.4
- Published
- Oct 28, 2021
- Platform
- windows/amd64
- Imports
- 10 packages
- Last checked
- 1 hour ago –
Tools for package owners.