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

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: Adds dummy go tests to run. 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
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..29b4a34badb94e2bf781cfc8a3fbb25ce44673eb
--- /dev/null
+++ b/mojom/mojom_parser/lexer/lexer_test.go
@@ -0,0 +1,11 @@
+package lexer
viettrungluu 2015/10/09 21:39:50 nit: Needs copyright header.
rudominer 2015/10/09 23:42:07 Done.
+
+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.")
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698