Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 251 for testChain (0.3 sec)

  1. src/cmd/cgo/internal/teststdio/stdio_test.go

    import (
    	"bytes"
    	"cmd/cgo/internal/cgotest"
    	"internal/testenv"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	log.SetFlags(log.Lshortfile)
    	os.Exit(testMain(m))
    }
    
    func testMain(m *testing.M) int {
    	GOPATH, err := os.MkdirTemp("", "cgostdio")
    	if err != nil {
    		log.Panic(err)
    	}
    	defer os.RemoveAll(GOPATH)
    	os.Setenv("GOPATH", GOPATH)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_json_exit.txt

    -- go.mod --
    module m
    go 1.14
    -- mainpanic/mainpanic_test.go --
    package mainpanic_test
    
    import "testing"
    
    func TestMain(m *testing.M) {
    	panic("haha no")
    }
    -- mainexit0/mainexit0_test.go --
    package mainexit0_test
    
    import (
    	"fmt"
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	fmt.Println("nothing to do")
    	os.Exit(0)
    }
    -- testpanic/testpanic_test.go --
    package testpanic_test
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 19:43:21 UTC 2020
    - 2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_testing/test_tutorial002.py

    from docs_src.app_testing.tutorial002 import test_read_main, test_websocket
    
    
    def test_main():
        test_read_main()
    
    
    def test_ws():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 10 09:08:19 UTC 2020
    - 154 bytes
    - Viewed (0)
  4. src/syscall/syscall_freebsd_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build freebsd
    
    package syscall_test
    
    import (
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	if os.Getenv("GO_DEATHSIG_PARENT") == "1" {
    		deathSignalParent()
    	} else if os.Getenv("GO_DEATHSIG_CHILD") == "1" {
    		deathSignalChild()
    	}
    
    	os.Exit(m.Run())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 424 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_json_panic_exit.txt

    func TestPass(t *testing.T) {}
    
    -- exit0main/exit0main_test.go --
    package exit0_test
    
    import (
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	os.Exit(0)
    }
    
    -- exit1main/exit1main_test.go --
    package exit1_test
    
    import (
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	os.Exit(1)
    }
    
    -- panic/panic_test.go --
    package panic_test
    
    import "testing"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  6. tests/integration/pilot/analysis/main_test.go

    	"istio.io/istio/pkg/test/framework/components/istio"
    	"istio.io/istio/pkg/test/framework/resource"
    )
    
    // TestMain defines the entrypoint for pilot tests using a standard Istio installation.
    // If a test requires a custom install it should go into its own package, otherwise it should go
    // here to reuse a single install across tests.
    func TestMain(m *testing.M) {
    	framework.
    		NewSuite(m).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 22 18:52:14 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/load/test.go

    		switch {
    		case name == "TestMain":
    			if isTestFunc(n, "T") {
    				t.Tests = append(t.Tests, testFunc{pkg, name, "", false})
    				*doImport, *seen = true, true
    				continue
    			}
    			err := checkTestFunc(n, "M")
    			if err != nil {
    				return err
    			}
    			if t.TestMain != nil {
    				return errors.New("multiple definitions of TestMain")
    			}
    			t.TestMain = &testFunc{pkg, name, "", false}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorServicesIntegrationTest.groovy

                    args '-cp', parameters.classpath.asPath, 'org.gradle.TestMain', parameters.projectDir, parameters.testFile
                }
            """
            fixture.withWorkActionClassInBuildScript()
    
            file('src/main/java/org/gradle/TestMain.java') << testMainSource
    
            buildFile << """
                apply plugin: "java"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_testing/test_tutorial003.py

    import pytest
    
    
    def test_main():
        with pytest.warns(DeprecationWarning):
            from docs_src.app_testing.tutorial003 import test_read_items
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 167 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_behind_a_proxy/test_tutorial002.py

    from fastapi.testclient import TestClient
    
    from docs_src.behind_a_proxy.tutorial002 import app
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
        assert response.json() == {"message": "Hello World", "root_path": "/api/v1"}
    
    
    def test_openapi():
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top