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

Unified Diff: go/src/infra/tools/cr/lib/terminal/terminal_test.go

Issue 1929153002: Add beginnings of new cr command (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix windows arguments Created 4 years, 6 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/tools/cr/lib/terminal/terminal.infra_testing ('k') | go/src/infra/tools/cr/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/tools/cr/lib/terminal/terminal_test.go
diff --git a/go/src/infra/tools/cr/lib/terminal/terminal_test.go b/go/src/infra/tools/cr/lib/terminal/terminal_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..f6729c5d863812210b81e7e5cd56fea0946dca5f
--- /dev/null
+++ b/go/src/infra/tools/cr/lib/terminal/terminal_test.go
@@ -0,0 +1,21 @@
+// Copyright 2016 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 terminal
+
+func ExamplePrint() {
+ Print("This is a string.")
+ Print("These are the numbers %d and %d.", 1, 2)
+ // Output:
+ // This is a string.
+ // These are the numbers 1 and 2.
+}
+
+func ExampleDebug() {
+ Debug("This will not be printed.")
+ ShowDebug = true
+ Debug("This will be printed.")
+ // Output:
+ // This will be printed.
+}
« no previous file with comments | « go/src/infra/tools/cr/lib/terminal/terminal.infra_testing ('k') | go/src/infra/tools/cr/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698