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

Unified Diff: mojom/mojom_parser/lexer/lexer_test.go

Issue 1384243002: Adds the ability to run pure Go unit tests in the Mojo test suite. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebasing Created 5 years, 2 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 | « mojo/tools/run_pure_go_tests.py ('k') | mojom/mojom_parser/parser/parser_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/mojom_parser/lexer/lexer_test.go
diff --git a/mojom/mojom_parser/lexer/lexer_test.go b/mojom/mojom_parser/lexer/lexer_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..1b378a77bbc61b8f178c6843d37b198ebc079c20
--- /dev/null
+++ b/mojom/mojom_parser/lexer/lexer_test.go
@@ -0,0 +1,15 @@
+// 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 lexer
+
+import "testing"
+
+// TODO(rudominer) This dummy test is here in order to be able to test the
+// go unit test infrastructure. It will eventually be replaced by a real test.
+func TestDummyLexerTest(t *testing.T) {
+ if 5.1 > 2.1*3.1 {
+ t.Fatalf("Something is wrong.")
+ }
+}
« no previous file with comments | « mojo/tools/run_pure_go_tests.py ('k') | mojom/mojom_parser/parser/parser_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698