MCPcopy Create free account
hub / github.com/cloud-native-go/examples / elapsedCheck

Function elapsedCheck

ch04/future_test.go:179–185  ·  view source on GitHub ↗
(t *testing.T, start time.Time, seconds int)

Source from the content-addressed store, hash-verified

177}
178
179func elapsedCheck(t *testing.T, start time.Time, seconds int) {
180 elapsed := int(time.Now().Sub(start).Seconds())
181
182 if seconds != elapsed {
183 t.Errorf("expected %d seconds; got %d\n", seconds, elapsed)
184 }
185}

Callers 5

TestFutureFunction · 0.85
TestFutureGetTwiceFunction · 0.85
TestFutureConcurrentFunction · 0.85
TestFutureTimeoutFunction · 0.85
TestFutureCancelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected