diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2015-10-09 17:56:52 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-10-09 18:05:11 +0000 |
commit | 47182329400e359a7a6ad5857cf1854a4f9ec720 (patch) | |
tree | 002f31a16e5f0299d46b7019fc88122deccfb307 /examples/go/lib/lib_test.go | |
parent | efb45908bd2a1361f724a78b98b821c2b8c89b66 (diff) |
Provide an example for the Go rules, eg.
bazel test examples/go/lib:lib_test
bazel build examples/go/bin:bin
--
MOS_MIGRATED_REVID=105070940
Diffstat (limited to 'examples/go/lib/lib_test.go')
-rw-r--r-- | examples/go/lib/lib_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/go/lib/lib_test.go b/examples/go/lib/lib_test.go new file mode 100644 index 0000000000..e8a9f1b707 --- /dev/null +++ b/examples/go/lib/lib_test.go @@ -0,0 +1,11 @@ +package lib + +import ( + "testing" +) + +func TestMeaning(t *testing.T) { + if m := Meaning(); m != 42 { + t.Errorf("got %d, want 42", m) + } +} |