mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-08 06:45:38 +00:00
Run operators tests with yaml and Goccy implementations
This commit is contained in:
parent
a9e4376a22
commit
b1f9024d2a
@ -53,8 +53,17 @@ func TestMain(m *testing.M) {
|
|||||||
Now = func() time.Time {
|
Now = func() time.Time {
|
||||||
return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC)
|
return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC)
|
||||||
}
|
}
|
||||||
code := m.Run()
|
|
||||||
os.Exit(code)
|
ConfiguredYamlPreferences.UseGoccyParser = false
|
||||||
|
exitCode := m.Run()
|
||||||
|
if exitCode != 0 {
|
||||||
|
os.Exit(exitCode)
|
||||||
|
}
|
||||||
|
|
||||||
|
ConfiguredYamlPreferences.UseGoccyParser = true
|
||||||
|
exitCode = m.Run()
|
||||||
|
|
||||||
|
os.Exit(exitCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSimpleYamlPrinter(writer io.Writer, unwrapScalar bool, indent int, printDocSeparators bool) Printer {
|
func NewSimpleYamlPrinter(writer io.Writer, unwrapScalar bool, indent int, printDocSeparators bool) Printer {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user