MCPcopy Create free account
hub / github.com/stretchr/testify / YAMLEqf

Function YAMLEqf

require/require.go:2094–2102  ·  view source on GitHub ↗

YAMLEqf asserts that two YAML strings are equivalent.

(t TestingT, expected string, actual string, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

2092
2093// YAMLEqf asserts that two YAML strings are equivalent.
2094func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) {
2095 if h, ok := t.(tHelper); ok {
2096 h.Helper()
2097 }
2098 if assert.YAMLEqf(t, expected, actual, msg, args...) {
2099 return
2100 }
2101 t.FailNow()
2102}
2103
2104// Zero asserts that i is the zero value for its type.
2105func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) {

Callers 1

YAMLEqfMethod · 0.70

Calls 3

YAMLEqfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected