2016-03-01 22:57:46 +00:00
|
|
|
// Copyright 2014 The Go Authors. All rights reserved.
|
2014-09-19 13:51:06 -04:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
package testing_test
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"os"
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
|
|
|
|
|
2016-12-08 07:13:50 +00:00
|
|
|
// This is exactly what a test would do without a TestMain.
|
|
|
|
|
// It's here only so that there is at least one package in the
|
|
|
|
|
// standard library with a TestMain, so that code is executed.
|
2016-10-22 07:25:21 -07:00
|
|
|
|
2016-12-08 07:13:50 +00:00
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
|
os.Exit(m.Run())
|
2014-09-19 13:51:06 -04:00
|
|
|
}
|