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

Unified Diff: mojom/mojom_parser/parser/parser_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/parser/parser_test.go
diff --git a/mojom/mojom_parser/parser/parser_test.go b/mojom/mojom_parser/parser/parser_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..c6f0ad27d5ed5de8e80e947e078456c7bb5eec7c
--- /dev/null
+++ b/mojom/mojom_parser/parser/parser_test.go
@@ -0,0 +1,11 @@
+package parser
viettrungluu 2015/10/09 21:39:50 "
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 TestDummyParserTest(t *testing.T) {
+ if 5.1 > 2.1*3.1 {
+ t.Fatalf("Something is wrong.")
+ }
+}
« mojom/mojom_parser/lexer/lexer_test.go ('K') | « mojom/mojom_parser/lexer/lexer_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698