yaml_custom.go

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