testsuite

package
v0.0.0-...-749e123 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package testsuite provides helper functions for interoperating with the language-agnostic TOML test suite at github.com/BurntSushi/toml-test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmpJSON

func CmpJSON(t *testing.T, key string, want, have interface{})

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 EncodeStdin

func EncodeStdin() error

EncodeStdin is a helper function for the toml-test binary interface. Tagged JSON is read from STDIN and a resulting TOML representation is written to STDOUT.

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal is a helpfer function for calling toml.Marshal

Only needed to avoid package import loops.

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal is a helper function for calling toml.Unmarshal.

Only needed to avoid package import loops.

func ValueToTaggedJSON

func ValueToTaggedJSON(doc interface{}) ([]byte, error)

ValueToTaggedJSON takes a data structure and returns the tagged JSON representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL