Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.10.0 to 1.11.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-version: 1.11.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
24 lines
727 B
Go
24 lines
727 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 [gopkg.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
|