You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By("running the generator and checking for errors")
85
+
hadErrs:=rt.Run()
78
86
79
87
By("checking that we got output contents")
88
+
Expect(output.fileList()).To(ContainElement("zz_generated.deepcopy.go")) // Don't use HaveKey--the output is too verbose to be usable
89
+
outFile:=output["zz_generated.deepcopy.go"]
90
+
Expect(outFile).NotTo(BeNil())
91
+
outContents:=outFile.contents
80
92
Expect(outContents).NotTo(BeNil())
81
93
82
94
By("loading the desired code")
@@ -85,5 +97,8 @@ var _ = Describe("CRD Generation From Parsing to CustomResourceDefinition", func
85
97
86
98
By("comparing the two")
87
99
Expect(string(outContents)).To(Equal(string(expectedFile)), "generated code not as expected, check pkg/deepcopy/testdata/README.md for more details.\n\nDiff:\n\n%s", cmp.Diff(outContents, expectedFile))
0 commit comments