1 //go:build testify_yaml_custom && !testify_yaml_fail && !testify_yaml_default
2 3 // Package yaml is an implementation of YAML functions that calls a pluggable implementation.
4 //
5 // This implementation is selected with the testify_yaml_custom build tag.
6 //
7 // go test -tags testify_yaml_custom
8 //
9 // This implementation can be used at build time to replace the default implementation
10 // to avoid linking with [gopkg.in/yaml.v3].
11 //
12 // In your test package:
13 //
14 // import assertYaml "github.com/stretchr/testify/assert/yaml"
15 //
16 // func init() {
17 // assertYaml.Unmarshal = func (in []byte, out interface{}) error {
18 // // ...
19 // return nil
20 // }
21 // }
22 package yaml
23 24 var Unmarshal func(in []byte, out interface{}) error
25