1 //go:build testify_yaml_fail && !testify_yaml_custom && !testify_yaml_default
2 3 // Package yaml is an implementation of YAML functions that always fail.
4 //
5 // This implementation can be used at build time to replace the default implementation
6 // to avoid linking with [gopkg.in/yaml.v3]:
7 //
8 // go test -tags testify_yaml_fail
9 package yaml
10 11 import "errors"
12 13 var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)")
14 15 func Unmarshal([]byte, interface{}) error {
16 return errNotImplemented
17 }
18