Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 529 for testfn (0.1 sec)

  1. src/cmd/go/testdata/script/list_dedup_packages.txt

    -- wantstdout --
    xtestonly
    -- f.go --
    package xtestonly
    
    func F() int { return 42 }
    -- f_test.go --
    package xtestonly_test
    
    import (
    	"testing"
    	"xtestonly"
    )
    
    func TestF(t *testing.T) {
    	if x := xtestonly.F(); x != 42 {
    		t.Errorf("f.F() = %d, want 42", x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 613 bytes
    - Viewed (0)
  2. src/testing/fstest/mapfs_test.go

    package fstest
    
    import (
    	"fmt"
    	"io/fs"
    	"strings"
    	"testing"
    )
    
    func TestMapFS(t *testing.T) {
    	m := MapFS{
    		"hello":             {Data: []byte("hello, world\n")},
    		"fortune/k/ken.txt": {Data: []byte("If a program is too slow, it must have a loop.\n")},
    	}
    	if err := TestFS(m, "hello", "fortune", "fortune/k", "fortune/k/ken.txt"); err != nil {
    		t.Fatal(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 14:59:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_cwd_newline.txt

    stdout '^ok$'  # 'go test' combines the test's stdout into stderr
    
    go test -v .
    ! stdout panic
    ! stderr panic
    stdout '^ok$'  # 'go test' combines the test's stdout into stderr
    
    [cgo] go tool cgo main.go
    [cgo] grep '//line .*'${/}'link'${/}'main\.go:1:1' _obj/main.cgo1.go
    [cgo] ! grep 'uh-oh' _obj/main.cgo1.go
    
    -- $WORK/go.mod --
    module example
    go 1.19
    -- $WORK/main.go --
    package main
    
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. docs/de/docs/contributing.md

    ## Tests
    
    Es gibt ein Skript, das Sie lokal ausführen können, um den gesamten Code zu testen und Code Coverage Reporte in HTML zu generieren:
    
    <div class="termy">
    
    ```console
    $ bash scripts/test-cov-html.sh
    ```
    
    </div>
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 23:55:23 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/unified_api_testutil.cc

                    absl::Span<AbstractTensorHandle* const> inputs,
                    absl::Span<AbstractTensorHandle*> outputs, bool use_function) {
      if (use_function) {
        const char* fn_name = "test_fn";
        core::RefCountPtr<AbstractFunction> scoped_func;
        // Returning null tensors from a tf.function is not supported, so we keep
        // track of indices in the model's outputs are nullptr in this set.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/settings.md

    * Durch die Verwendung einer Abhängigkeit können Sie das Testen vereinfachen.
    * Sie können `.env`-Dateien damit verwenden.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:17:14 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/testing/testing.go

    	return obj
    }
    
    // SyncAll simulates the controller periodic sync of volumes and claim. It
    // simply adds all these objects to the internal queue of updates. This method
    // should be used when the test manually calls syncClaim/syncVolume. Test that
    // use real controller loop (ctrl.Run()) will get periodic sync automatically.
    func (r *VolumeReactor) SyncAll() {
    	r.lock.Lock()
    	defer r.lock.Unlock()
    
    	for _, c := range r.claims {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/testing/tester.go

    }
    
    func (t *Tester) ClusterScope() *Tester {
    	t.tester = t.tester.ClusterScope()
    	return t
    }
    
    func (t *Tester) Namer(namer func(int) string) *Tester {
    	t.tester = t.tester.Namer(namer)
    	return t
    }
    
    func (t *Tester) AllowCreateOnUpdate() *Tester {
    	t.tester = t.tester.AllowCreateOnUpdate()
    	return t
    }
    
    func (t *Tester) GeneratesName() *Tester {
    	t.tester = t.tester.GeneratesName()
    	return t
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 16:50:16 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/testing.md

        **FastAPI** 提供了和 `starlette.testclient` 一样的 `fastapi.testclient`,只是为了方便开发者。但它直接来自Starlette。
    
    !!! tip "提示"
        除了发送请求之外,如果你还想测试时在FastAPI应用中调用 `async` 函数(例如异步数据库函数), 可以在高级教程中看下 [Async Tests](../advanced/async-tests.md){.internal-link target=_blank} 。
    
    ## 分离测试
    
    在实际应用中,你可能会把你的测试放在另一个文件里。
    
    您的**FastAPI**应用程序也可能由一些文件/模块组成等等。
    
    ### **FastAPI** app 文件
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. fess-crawler/src/test/resources/extractor/test_ns.xml

    Shinsuke Sugaya <******@****.***> 1444529815 +0900
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 707 bytes
    - Viewed (0)
Back to top