github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6@v6.2.0/utils_test.go (about) 1 //go:build go1.18 2 // +build go1.18 3 4 // Copyright (c) Microsoft Corporation. All rights reserved. 5 // Licensed under the MIT License. See License.txt in the project root for license information. 6 7 package armnetwork_test 8 9 import ( 10 "os" 11 "testing" 12 13 "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" 14 ) 15 16 const ( 17 pathToPackage = "sdk/resourcemanager/network/armnetwork/testdata" 18 ) 19 20 func TestMain(m *testing.M) { 21 code := run(m) 22 os.Exit(code) 23 } 24 25 func run(m *testing.M) int { 26 f := testutil.StartProxy(pathToPackage) 27 defer f() 28 return m.Run() 29 }