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
Added a d.Passes method. This works just like d.Is except that the second argument must be a detest.Comparer. This reads better when using a detest.FuncComparer, since we're not testing exact equality in this case.
Added a d.Require method. This is used something like this: go d.Require(d.Is(got, 42, "answer is 42")) If the d.Is test fails, then t.Fatal will be called and the current goroutine is aborted. This lets you exit a set of tests early if a key assertion fails.
Change d.Is and d.ValueIs to take multiple final arguments. If only one argument is provided, this is used as the test name. If multiple are provided, then these are passed to fmt.Sprintf to create the test name.