Skip to content

Commit 988ad34

Browse files
committed
run go generate
1 parent f9122dc commit 988ad34

File tree

4 files changed

+63
-63
lines changed

4 files changed

+63
-63
lines changed

assert/assertion_format.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick
164164
// If the condition is not met before waitFor, the collected errors of
165165
// the last tick are copied to t.
166166
//
167-
// externalValue := false
168-
// go func() {
169-
// time.Sleep(8*time.Second)
170-
// externalValue = true
171-
// }()
172-
// assert.EventuallyWithTf(t, func(c *assert.CollectT) {
173-
// // add assertions as needed; any assertion failure will fail the current tick
174-
// assert.True(c, externalValue, "expected 'externalValue' to be true")
175-
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still: %v", externalState)
167+
// externalValue := false
168+
// go func() {
169+
// time.Sleep(8*time.Second)
170+
// externalValue = true
171+
// }()
172+
// assert.EventuallyWithTf(t, func(c *assert.CollectT, "error message %s", "formatted") {
173+
// // add assertions as needed; any assertion failure will fail the current tick
174+
// assert.True(c, externalValue, "expected 'externalValue' to be true")
175+
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
176176
func EventuallyWithTf(t TestingT, condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
177177
if h, ok := t.(tHelper); ok {
178178
h.Helper()

assert/assertion_forward.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,15 @@ func (a *Assertions) Eventually(condition func() bool, waitFor time.Duration, ti
297297
// If the condition is not met before waitFor, the collected errors of
298298
// the last tick are copied to t.
299299
//
300-
// externalValue := false
301-
// go func() {
302-
// time.Sleep(8*time.Second)
303-
// externalValue = true
304-
// }()
305-
// a.EventuallyWithT(t, func(c *assert.CollectT) {
306-
// // add assertions as needed; any assertion failure will fail the current tick
307-
// assert.True(c, externalValue, "expected 'externalValue' to be true")
308-
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
300+
// externalValue := false
301+
// go func() {
302+
// time.Sleep(8*time.Second)
303+
// externalValue = true
304+
// }()
305+
// a.EventuallyWithT(func(c *assert.CollectT) {
306+
// // add assertions as needed; any assertion failure will fail the current tick
307+
// assert.True(c, externalValue, "expected 'externalValue' to be true")
308+
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
309309
func (a *Assertions) EventuallyWithT(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool {
310310
if h, ok := a.t.(tHelper); ok {
311311
h.Helper()
@@ -322,15 +322,15 @@ func (a *Assertions) EventuallyWithT(condition func(collect *CollectT), waitFor
322322
// If the condition is not met before waitFor, the collected errors of
323323
// the last tick are copied to t.
324324
//
325-
// externalValue := false
326-
// go func() {
327-
// time.Sleep(8*time.Second)
328-
// externalValue = true
329-
// }()
330-
// a.EventuallyWithTf(t, func(c *assert.CollectT) {
331-
// // add assertions as needed; any assertion failure will fail the current tick
332-
// assert.True(c, externalValue, "expected 'externalValue' to be true")
333-
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still: %v", externalState)
325+
// externalValue := false
326+
// go func() {
327+
// time.Sleep(8*time.Second)
328+
// externalValue = true
329+
// }()
330+
// a.EventuallyWithTf(func(c *assert.CollectT, "error message %s", "formatted") {
331+
// // add assertions as needed; any assertion failure will fail the current tick
332+
// assert.True(c, externalValue, "expected 'externalValue' to be true")
333+
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
334334
func (a *Assertions) EventuallyWithTf(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
335335
if h, ok := a.t.(tHelper); ok {
336336
h.Helper()

require/require.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,15 @@ func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick t
373373
// If the condition is not met before waitFor, the collected errors of
374374
// the last tick are copied to t.
375375
//
376-
// externalValue := false
377-
// go func() {
378-
// time.Sleep(8*time.Second)
379-
// externalValue = true
380-
// }()
381-
// require.EventuallyWithT(t, func(c *assert.CollectT) {
382-
// // add assertions as needed; any assertion failure will fail the current tick
383-
// assert.True(c, externalValue, "expected 'externalValue' to be true")
384-
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
376+
// externalValue := false
377+
// go func() {
378+
// time.Sleep(8*time.Second)
379+
// externalValue = true
380+
// }()
381+
// assert.EventuallyWithT(t, func(c *assert.CollectT) {
382+
// // add assertions as needed; any assertion failure will fail the current tick
383+
// assert.True(c, externalValue, "expected 'externalValue' to be true")
384+
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
385385
func EventuallyWithT(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
386386
if h, ok := t.(tHelper); ok {
387387
h.Helper()
@@ -401,15 +401,15 @@ func EventuallyWithT(t TestingT, condition func(collect *assert.CollectT), waitF
401401
// If the condition is not met before waitFor, the collected errors of
402402
// the last tick are copied to t.
403403
//
404-
// externalValue := false
405-
// go func() {
406-
// time.Sleep(8*time.Second)
407-
// externalValue = true
408-
// }()
409-
// require.EventuallyWithTf(t, func(c *assert.CollectT) {
410-
// // add assertions as needed; any assertion failure will fail the current tick
411-
// assert.True(c, externalValue, "expected 'externalValue' to be true")
412-
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still: %v", externalState)
404+
// externalValue := false
405+
// go func() {
406+
// time.Sleep(8*time.Second)
407+
// externalValue = true
408+
// }()
409+
// assert.EventuallyWithTf(t, func(c *assert.CollectT, "error message %s", "formatted") {
410+
// // add assertions as needed; any assertion failure will fail the current tick
411+
// assert.True(c, externalValue, "expected 'externalValue' to be true")
412+
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
413413
func EventuallyWithTf(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
414414
if h, ok := t.(tHelper); ok {
415415
h.Helper()

require/require_forward.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,15 @@ func (a *Assertions) Eventually(condition func() bool, waitFor time.Duration, ti
298298
// If the condition is not met before waitFor, the collected errors of
299299
// the last tick are copied to t.
300300
//
301-
// externalValue := false
302-
// go func() {
303-
// time.Sleep(8*time.Second)
304-
// externalValue = true
305-
// }()
306-
// require.EventuallyWithT(t, func(c *assert.CollectT) {
307-
// // add assertions as needed; any assertion failure will fail the current tick
308-
// assert.True(c, externalValue, "expected 'externalValue' to be true")
309-
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
301+
// externalValue := false
302+
// go func() {
303+
// time.Sleep(8*time.Second)
304+
// externalValue = true
305+
// }()
306+
// a.EventuallyWithT(func(c *assert.CollectT) {
307+
// // add assertions as needed; any assertion failure will fail the current tick
308+
// assert.True(c, externalValue, "expected 'externalValue' to be true")
309+
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
310310
func (a *Assertions) EventuallyWithT(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
311311
if h, ok := a.t.(tHelper); ok {
312312
h.Helper()
@@ -323,15 +323,15 @@ func (a *Assertions) EventuallyWithT(condition func(collect *assert.CollectT), w
323323
// If the condition is not met before waitFor, the collected errors of
324324
// the last tick are copied to t.
325325
//
326-
// externalValue := false
327-
// go func() {
328-
// time.Sleep(8*time.Second)
329-
// externalValue = true
330-
// }()
331-
// require.EventuallyWithTf(t, func(c *assert.CollectT) {
332-
// // add assertions as needed; any assertion failure will fail the current tick
333-
// assert.True(c, externalValue, "expected 'externalValue' to be true")
334-
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still: %v", externalState)
326+
// externalValue := false
327+
// go func() {
328+
// time.Sleep(8*time.Second)
329+
// externalValue = true
330+
// }()
331+
// a.EventuallyWithTf(func(c *assert.CollectT, "error message %s", "formatted") {
332+
// // add assertions as needed; any assertion failure will fail the current tick
333+
// assert.True(c, externalValue, "expected 'externalValue' to be true")
334+
// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false")
335335
func (a *Assertions) EventuallyWithTf(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
336336
if h, ok := a.t.(tHelper); ok {
337337
h.Helper()

0 commit comments

Comments
 (0)