Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for testing_test (0.17 sec)

  1. src/testing/testing_test.go

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testing_test
    
    import (
    	"bytes"
    	"fmt"
    	"internal/race"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    	"slices"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    )
    
    // This is exactly what a test would do without a TestMain.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/python/testing_test.py

    # ==============================================================================
    
    from tensorflow.compiler.mlir.quantization.common.python import testing
    from tensorflow.python.platform import test
    
    
    class TestingTest(test.TestCase):
    
      def test_parameter_combinations(self):
        """Tests that parameter_combinations returns correct combinations."""
        test_parameters = [{
            'shapes': [
                [3, 3],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/testing_test.go

    Robert Griesemer <******@****.***> 1670461047 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:53:18 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_race_issue26995.txt

    [short] skip
    [!race] skip
    
    go test -v -race
    stdout 'testing_test.go:26: directCall'
    stdout 'testing_test.go:27: interfaceTBCall'
    stdout 'testing_test.go:28: interfaceCall'
    
    -- go.mod --
    module 26995-TBHelper-line-number
    
    go 1.21
    -- testing_test.go --
    package testing_test
    
    import "testing"
    
    type TestingT interface {
    	Helper()
    	Log(args ...interface{})
    }
    
    func directCall(t *testing.T) {
    	t.Helper()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 17:19:18 UTC 2024
    - 662 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/python/BUILD

    )
    
    pytype_strict_library(
        name = "testing",
        srcs = ["testing.py"],
        tags = ["no_pip"],
        visibility = ["//visibility:public"],
    )
    
    tf_py_strict_test(
        name = "testing_test",
        srcs = ["testing_test.py"],
        deps = [
            ":testing",
            "//tensorflow/python/platform:client_testlib",
        ],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 04:19:17 UTC 2024
    - 749 bytes
    - Viewed (0)
  6. src/testing/allocs_test.go

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testing_test
    
    import "testing"
    
    var global any
    
    var allocsPerRunTests = []struct {
    	name   string
    	fn     func()
    	allocs float64
    }{
    	{"alloc *byte", func() { global = new(*byte) }, 1},
    	{"alloc complex128", func() { global = new(complex128) }, 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 817 bytes
    - Viewed (0)
  7. src/testing/testing_windows_test.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testing_test
    
    import (
    	"testing"
    	"time"
    )
    
    var sink time.Time
    var sinkHPT testing.HighPrecisionTime
    
    func BenchmarkTimeNow(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		sink = time.Now()
    	}
    }
    
    func BenchmarkHighPrecisionTimeNow(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 490 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_deadline.txt

    go test -timeout=0 -run=TestNoDeadline
    go test -timeout=1m -run=TestDeadlineWithinMinute
    go test -timeout=1m -run=TestSubtestDeadlineWithinMinute
    
    -- go.mod --
    module m
    
    go 1.16
    -- deadline_test.go --
    package testing_test
    
    import (
    	"testing"
    	"time"
    )
    
    func TestNoDeadline(t *testing.T) {
    	d, ok := t.Deadline()
    	if ok || !d.IsZero() {
    		t.Fatalf("t.Deadline() = %v, %v; want 0, false", d, ok)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  9. src/testing/helperfuncs_test.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testing_test
    
    import (
    	"sync"
    	"testing"
    )
    
    // The line numbering of this file is important for TestTBHelper.
    
    func notHelper(t *testing.T, msg string) {
    	t.Error(msg)
    }
    
    func helper(t *testing.T, msg string) {
    	t.Helper()
    	t.Error(msg)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:24:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. src/testing/flag_test.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testing_test
    
    import (
    	"flag"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"testing"
    )
    
    var testFlagArg = flag.String("test_flag_arg", "", "TestFlag: passing -v option")
    
    const flagTestEnv = "GO_WANT_FLAG_HELPER_PROCESS"
    
    func TestFlag(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top