Documentation ¶ Index ¶ func AssertFailedTest(t *testing.T, gt *TSpy) func AssertPassTest(t *testing.T, gt *TSpy) func AssertReportContains(t *testing.T, g *TSpy, s string) type TSpy func (t *TSpy) Errorf(_ string, report ...any) func (t *TSpy) Reset() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AssertFailedTest ¶ func AssertFailedTest(t *testing.T, gt *TSpy) AssertFailedTest allows us to spy on TSpy func AssertPassTest ¶ func AssertPassTest(t *testing.T, gt *TSpy) func AssertReportContains ¶ func AssertReportContains(t *testing.T, g *TSpy, s string) Types ¶ type TSpy ¶ type TSpy struct { *testing.T // contains filtered or unexported fields } TSpy is a replacement of *testing.T for some tests of the golden library. With it, we can spy if the Verify method fails when differences between subject and snapshot are found func (*TSpy) Errorf ¶ func (t *TSpy) Errorf(_ string, report ...any) func (*TSpy) Reset ¶ func (t *TSpy) Reset() Source Files ¶ View all Source files tspy.go Click to show internal directories. Click to hide internal directories.