github.com/mdempsky/go@v0.0.0-20151201204031-5dd372bd1e70/src/testing/testing_test.go (about) 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 5 package testing_test 6 7 import ( 8 "os" 9 "testing" 10 ) 11 12 // This is exactly what a test would do without a TestMain. 13 // It's here only so that there is at least one package in the 14 // standard library with a TestMain, so that code is executed. 15 16 func TestMain(m *testing.M) { 17 os.Exit(m.Run()) 18 }