Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for testMain (0.12 sec)

  1. src/testing/internal/testdeps/deps.go

    	l.w.WriteString(name)
    	l.w.WriteByte('\n')
    }
    
    var log testLog
    
    func (TestDeps) StartTestLog(w io.Writer) {
    	log.mu.Lock()
    	log.w = bufio.NewWriter(w)
    	if !log.set {
    		// Tests that define TestMain and then run m.Run multiple times
    		// will call StartTestLog/StopTestLog multiple times.
    		// Checking log.set avoids calling testlog.SetLogger multiple times
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/internal/coverage/cfile/hooks.go

    // If 'istest' is true (indicating that the program in question is a
    // Go test binary), then we tentatively queue up both emitMetaData and
    // emitCounterData as exit hooks. In the normal case (e.g. regular "go
    // test -cover" run) the testmain.go boilerplate will run at the end
    // of the test, write out the coverage percentage, and then invoke
    // MarkProfileEmitted to indicate that no more work needs to be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. tests/integration/security/main_test.go

    	// Servers
    	apps             deployment.TwoNamespaceView
    	authzServer      authz.Server
    	localAuthzServer authz.Server
    	jwtServer        jwt.Server
    
    	i istio.Instance
    )
    
    func TestMain(m *testing.M) {
    	framework.
    		NewSuite(m).
    		Setup(istio.Setup(&i, func(c resource.Context, cfg *istio.Config) {
    			cfg.ControlPlaneValues = `
    values:
      global:
        logging:
          level: delta:debug
      pilot: 
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. tests/integration/pilot/multiplecontrolplanes/main_test.go

    	echo1NS    namespace.Instance
    	echo2NS    namespace.Instance
    	echo3NS    namespace.Instance
    	externalNS namespace.Instance
    	apps       deployment.Echos
    )
    
    // TestMain defines the entrypoint for multiple controlplane tests using revisions and discoverySelectors.
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		RequireMultiPrimary().
    		// Requires two CPs with specific names to be configured.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. tests/integration/ambient/untaint/main_test.go

    	"istio.io/istio/pkg/test/framework/resource"
    	"istio.io/istio/tests/integration/security/util/cert"
    )
    
    const (
    	Captured = "captured"
    )
    
    var i istio.Instance
    
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		RequireMinVersion(24).
    		Label(label.IPv4). // https://github.com/istio/istio/issues/41008
    		Setup(func(t resource.Context) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 14:58:41 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. tests/integration/pilot/cni/cniversionskew_test.go

    					t.Fatal(err)
    				}
    				if err := apps.All.Instances().Restart(); err != nil {
    					t.Fatalf("Failed to restart apps %v", err)
    				}
    				common.RunAllTrafficTests(t, i, apps)
    			}
    		})
    }
    
    func TestMain(m *testing.M) {
    	// nolint: staticcheck
    	framework.
    		NewSuite(m).
    		Label(label.Postsubmit).
    		Label(label.CustomSetup).
    		RequireMultiPrimary().
    		Setup(istio.Setup(&i, nil)).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. tests/integration/telemetry/tracing/otelcollector/tracing_test.go

    									}
    									return nil
    								}, retry.Delay(3*time.Second), retry.Timeout(80*time.Second))
    							})
    						}
    					})
    			}
    		})
    }
    
    func TestMain(m *testing.M) {
    	framework.NewSuite(m).
    		Label(label.CustomSetup).
    		Setup(istio.Setup(tracing.GetIstioInstance(), setupConfig)).
    		Setup(tracing.TestSetup).
    		Setup(testSetup).
    		Run()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:30 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. tests/integration/telemetry/api/setup_test.go

    const (
    	DefaultBucketCount = 20
    )
    
    var (
    	apps cdeployment.SingleNamespaceView
    
    	mockProm echo.Instances
    	ist      istio.Instance
    	promInst prometheus.Instance
    	ingr     []ingress.Instance
    )
    
    func TestMain(m *testing.M) {
    	framework.NewSuite(m).
    		Label(label.CustomSetup).
    		// TODO: Remove this restriction once we validate our prometheus helm chart version is high enough
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. tests/integration/pilot/gateway_conformance_test.go

    )
    
    // GatewayConformanceInputs defines inputs to the gateway conformance test.
    // The upstream build requires using `testing.T` types, which we cannot pass using our framework.
    // To workaround this, we set up the inputs it TestMain.
    type GatewayConformanceInputs struct {
    	Client  kube.CLIClient
    	Cleanup bool
    }
    
    var gatewayConformanceInputs GatewayConformanceInputs
    
    // defined in sigs.k8s.io/gateway-api/conformance/base/manifests.yaml
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 15:22:47 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. tests/binary/binaries_test.go

    	"flag"
    	"os"
    	"os/exec"
    	"path"
    	"strings"
    	"testing"
    
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/version"
    )
    
    var (
    	binaries   *string
    	releasedir *string
    )
    
    func TestMain(m *testing.M) {
    	releasedir = flag.String("base-dir", "", "directory for binaries")
    	binaries = flag.String("binaries", "", "space separated binaries to test")
    	flag.Parse()
    	os.Exit(m.Run())
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top