testing_test.go 449 B

12345678910111213141516171819
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package testing_test
  5. import (
  6. "os"
  7. "testing"
  8. )
  9. // This is exactly what a test would do without a TestMain.
  10. // It's here only so that there is at least one package in the
  11. // standard library with a TestMain, so that code is executed.
  12. func TestMain(m *testing.M) {
  13. os.Exit(m.Run())
  14. }