Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 180 for testChain (0.16 sec)

  1. docs/en/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    The file `main.py` would have:
    
    ```Python
    {!../../../docs_src/async_tests/main.py!}
    ```
    
    The file `test_main.py` would have the tests for `main.py`, it could look like this now:
    
    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Run it
    
    You can run your tests as usual via:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jan 13 12:07:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/testing.md

    ```Python
    {!../../../docs_src/app_testing/main.py!}
    ```
    
    ### Testdatei
    
    Dann könnten Sie eine Datei `test_main.py` mit Ihren Tests haben. Sie könnte sich im selben Python-Package befinden (dasselbe Verzeichnis mit einer `__init__.py`-Datei):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:20:01 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/testing.md

    {!../../../docs_src/app_testing/main.py!}
    ```
    
    ### 测试文件
    
    然后你会有一个包含测试的文件 `test_main.py` 。app可以像Python包那样存在(一样是目录,但有个 `__init__.py` 文件):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    因为这文件在同一个包中,所以你可以通过相对导入从 `main` 模块(`main.py`)导入`app`对象:
    
    ```Python hl_lines="3"
    {!../../../docs_src/app_testing/test_main.py!}
    ```
    
    ...然后测试代码和之前一样的。
    
    ## 测试:扩展示例
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/build_cache_output.txt

    go test -v -x -gcflags=-m -ldflags=-v p
    stderr 'compile( |\.exe"?)'
    stderr 'p_test.go:.*can inline Test' # from compile of p_test
    stderr 'testmain\.go:.*inlin' # from compile of testmain
    stderr 'link(\.exe"?)? -'
    stderr '\d+ symbols' # from linker
    stderr 'p\.test( |\.exe"?)'
    stdout 'TEST' # from test
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top