- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBatchedEmpty (0.16 sec)
-
src/crypto/rand/rand_batched_test.go
func TestBatchedError(t *testing.T) { b := batched(func(p []byte) error { return errors.New("failure") }, 5) if b(make([]byte, 13)) == nil { t.Fatal("batched function should have returned an error") } } func TestBatchedEmpty(t *testing.T) { b := batched(func(p []byte) error { return errors.New("failure") }, 5) if b(make([]byte, 0)) != nil { t.Fatal("empty slice should always return successful") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 16:24:57 UTC 2022 - 1.8K bytes - Viewed (0)