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

Unified Diff: go/src/infra/monorail/monorail_test.go

Issue 2037143002: Monorail client in Go (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: more tests 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/monorail/monorail.pb.go ('k') | go/src/infra/monorail/pb.discovery.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/monorail/monorail_test.go
diff --git a/go/src/infra/monorail/monorail_test.go b/go/src/infra/monorail/monorail_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..11433fefbbe4b2262cdb2d26f23be83ec5d6e28d
--- /dev/null
+++ b/go/src/infra/monorail/monorail_test.go
@@ -0,0 +1,23 @@
+// 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 monorail
+
+import (
+ "testing"
+
+ . "github.com/smartystreets/goconvey/convey"
+)
+
+func TestMonorail(t *testing.T) {
+ t.Parallel()
+
+ Convey("Monorail", t, func() {
+ Convey("IssueURL", func() {
+ expected := "https://bugs.chromium.org/p/chromium/issues/detail?id=123"
+ actual := IssueURL("bugs.chromium.org", "chromium", 123)
+ So(actual, ShouldEqual, expected)
+ })
+ })
+}
« no previous file with comments | « go/src/infra/monorail/monorail.pb.go ('k') | go/src/infra/monorail/pb.discovery.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698