Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Unified Diff: go/src/infra/libs/parallel/parallel_test.go

Issue 1153883002: go: infra/libs/* now live in luci-go. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: move the rest too Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/libs/parallel/parallel.go ('k') | go/src/infra/monitoring/analyzer/analyzer.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/libs/parallel/parallel_test.go
diff --git a/go/src/infra/libs/parallel/parallel_test.go b/go/src/infra/libs/parallel/parallel_test.go
deleted file mode 100644
index 10a8514dfde95cbaffe2acd1ee00ab3e4b9e6c8a..0000000000000000000000000000000000000000
--- a/go/src/infra/libs/parallel/parallel_test.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package parallel
-
-import (
- "fmt"
-)
-
-func ExampleFanOutIn() {
- data := []int{1, 20}
- err := FanOutIn(func(ch chan<- func() error) {
- for _, d := range data {
- d := d
- ch <- func() error {
- if d > 10 {
- return fmt.Errorf("%d is over 10", d)
- }
- return nil
- }
- }
- })
-
- fmt.Printf("got: %s", err)
- // Output: got: ["20 is over 10"]
-}
« no previous file with comments | « go/src/infra/libs/parallel/parallel.go ('k') | go/src/infra/monitoring/analyzer/analyzer.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698