github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/compile/types2/main_test.go (about)

     1  // Copyright 2022 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 types2_test
     6  
     7  import (
     8  	"go/build"
     9  	"os"
    10  	"testing"
    11  
    12  	"github.com/go-asm/go/testenv"
    13  )
    14  
    15  func TestMain(m *testing.M) {
    16  	build.Default.GOROOT = testenv.GOROOT(nil)
    17  	os.Exit(m.Run())
    18  }