Files
abra/vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go
T
renovate-bot 8f6ebac2ce
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update module github.com/stretchr/testify to v1.12.1
2026-08-19 14:01:40 +00:00

25 lines
729 B
Go

//go:build testify_yaml_custom && !testify_yaml_fail && !testify_yaml_default
// Package yaml is an implementation of YAML functions that calls a pluggable implementation.
//
// This implementation is selected with the testify_yaml_custom build tag.
//
// go test -tags testify_yaml_custom
//
// This implementation can be used at build time to replace the default implementation
// to avoid linking with [go.yaml.in/yaml/v3].
//
// In your test package:
//
// import assertYaml "github.com/stretchr/testify/assert/yaml"
//
// func init() {
// assertYaml.Unmarshal = func (in []byte, out interface{}) error {
// // ...
// return nil
// }
// }
package yaml
var Unmarshal func(in []byte, out interface{}) error